formatting of user queries to support markdown