Disabling parser rules #436
silverpill
started this conversation in
Feature requests
Replies: 2 comments
-
There is no such feature at present, though I imagine it might not be too hard to add checks at key places in the parser where certain elements are recognised. Pull requests welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm still interested in this. I imagine that instead of re-rendering back to markdown (lossy), one can use sourcepos to get the original text, but when I tried to do that I found that some sourcepos have unexpected values. Don't remember what exactly was wrong, maybe positions were set to zeros |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to skip parsing of certain elements, such as headings or lists?
In my application I need to support only a subset of GFM. The workaround I'm currently using is re-rendering of certain AST nodes back to markdown and replacing them with text nodes, but perhaps there's a better way?
Beta Was this translation helpful? Give feedback.
All reactions