add markdown functionality and replace hashtags with references