Maybe I am out of the loop here, but doesn’t the current reference implementation (in C) allow you to output an AST with the --ast
flag? Please see @jgm’s reply to CommonMark Formal Grammar: “it will give you a representation of the syntax tree”.
2 Likes