-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep a record of source position in output of lexer #452
Comments
Duplicate of #441. |
x13machine
added a commit
to x13machine/marked
that referenced
this issue
Mar 21, 2019
zhenalexfan
pushed a commit
to zhenalexfan/MarkdownHan
that referenced
this issue
Nov 8, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be useful if the objects in the array returned by the lexer contained start and end indices so that the markdown source corresponding to each object could be recovered. I'd like to use marked to parse markdown documents and pull out individual sections. It would be nice to be able to store these sections as markdown source, since the object format returned by the lexer could change in future. I'm planning to have a go at adding this feature myself, but I wondered if people think that it's an appropriate addition.
The text was updated successfully, but these errors were encountered: