Context
I'm writing a tool to parse markdown files and verify that links are valid. To be able to provide the most valuable, accurate feedback, I need to be able to display line numbers to the user, so that they know exactly where in a file the broken link is.
Right now this isn't possible, because line numbers aren't recorded on token objects.
Proposal
Store line numbers on tokens, and provide a convenient wrapper for accessing the line number of a node when using SyntaxTreeNode.
Tasks and updates
No response
Context
I'm writing a tool to parse markdown files and verify that links are valid. To be able to provide the most valuable, accurate feedback, I need to be able to display line numbers to the user, so that they know exactly where in a file the broken link is.
Right now this isn't possible, because line numbers aren't recorded on token objects.
Proposal
Store line numbers on tokens, and provide a convenient wrapper for accessing the line number of a node when using
SyntaxTreeNode.Tasks and updates
No response