I created a ticket with a patch: http://core.trac.wordpress.org/ticket/14481 It ran fine against example-post.txt in 8553. It would be good to have unit tests for running against the parse tree and output. I'm not sure the parse tree in this is 100% correct for opening nodes because names can match a subset of (not-quoted) literals.