Join GitHub today
Add locations to the AST #21
Ok, I understand that basically, for a node in the AST, you want to be able to know which Markdown expression that led to it. I agree that it would be nice to have this feature.
I'm currently thinking that this might need a lot of code refactoring... I have to think more.
If you have suggestions on how to do it, don't hesitate ;)
There is more. Since we intend to pre-process some files, an annotation like the
referenced this issue
Oct 1, 2013
I've added Markdown support to Lambdoc via OMD (see here for the code). And indeed, the major problem is still the lack of location information. This is necessary in Lambdoc for two main reasons: first, because Lambdoc allows customisable feature sets (you may want to forbid your users from formatting text as bold, for a silly example); second, because not all OMD features are present in Lambdoc (nesting beyond H3, for instance). In both cases I need to know the line number where the offending input occurred, so I can present a user-friendly error message.