separate attribute and code block parsers
r markdown parser example

might help with #2