I am trying to use EarmarkParser in order to do some analysis of Markdown files, like spellchecking and other checks. I am not interested in converting the AST to some other format, but instead I would like to be able to refer back to the original Markdown content.
For this reason I'd like to have the original line (and ideally column) for each part of the AST. I understand that the information is displayed when there are errors only. Would it be possible to have it in any case (with an option)?
I have checked the options, but it seems the line option is only an offset added to the line on errors, right?
I looked at the code a bit, and EarmarkParser.Parser.parse_markdown is close enough to what I needed. Even though it's in a internal module, that'll be good for me now.
Hello,
I am trying to use EarmarkParser in order to do some analysis of Markdown files, like spellchecking and other checks. I am not interested in converting the AST to some other format, but instead I would like to be able to refer back to the original Markdown content.
For this reason I'd like to have the original line (and ideally column) for each part of the AST. I understand that the information is displayed when there are errors only. Would it be possible to have it in any case (with an option)?
I have checked the options, but it seems the
line
option is only an offset added to the line on errors, right?