Sorting out markdown syntax