Disabling parser rules #436
Replies: 3 comments 1 reply
-
|
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.
-
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.
-
|
I would love to see this ability, for my software I want to be able to turn off the indentation to code rule so only fenced code is rendered as code as I use this as part of the render pipeline in weaving where partials will obviously contain indentation for the elements but are rendered as code currently. I will take a look to see if I can figure out a way to do this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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