You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to parse markdown that doesn't comply with the popular specs. I can manage implementing custom syntaxes, but a roadblock I've hit is that the standard block/inline syntaxes, which are forcefully included, parse improperly some data (improperly, as to the custom spec that I have to follow).
Example
<center><a>**some text**</a></center> is parsed as **some text**, while I want some text. The block parser wraps it in a Text element, but UnparsedContent is what I need.
Possible Solution
Maybe the markdownToHtml function can have two optional parameters - withStandardBlockSyntaxes and withStandardInlineSyntaxes - that would be true by default. Disabling them will prevent the BlockParser and InlineParser from auto-including the standard syntaxes.
Another thing is that I don't need the functionality of all the standard syntaxes and excluding them may improve performance a little.
The text was updated successfully, but these errors were encountered:
Problem
I need to parse markdown that doesn't comply with the popular specs. I can manage implementing custom syntaxes, but a roadblock I've hit is that the standard block/inline syntaxes, which are forcefully included, parse improperly some data (improperly, as to the custom spec that I have to follow).
Example
<center><a>**some text**</a></center>
is parsed as **some text**, while I want some text. The block parser wraps it in aText
element, butUnparsedContent
is what I need.Possible Solution
Maybe the
markdownToHtml
function can have two optional parameters -withStandardBlockSyntaxes
andwithStandardInlineSyntaxes
- that would betrue
by default. Disabling them will prevent theBlockParser
andInlineParser
from auto-including the standard syntaxes.Another thing is that I don't need the functionality of all the standard syntaxes and excluding them may improve performance a little.
The text was updated successfully, but these errors were encountered: