added numbering of note permalinks. added redcarpet.