Skip to content
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

Closed
addrummond opened this issue Jul 23, 2014 · 1 comment
Closed

Keep a record of source position in output of lexer #452

addrummond opened this issue Jul 23, 2014 · 1 comment

Comments

@addrummond
Copy link

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.

@scottgonzalez
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants