mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-10 21:40:00 +00:00
Parsing <sup> and <sub> tags #190
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @amkuchta on GitHub (Feb 13, 2018).
While these may not be specifically markdown, some markdown standards (looking at you, GitHub) do not provide emphasis extensions for super and subscript, which forces users to rely on
<sup>and<sub>tags. Could MarkDig be updated to include support for this?@xoofx commented on GitHub (Feb 13, 2018):
Not sure to understand what markdig should include? Inline HTML are supported in markdig. Why markdig should have to parse sup/sub tags?
@amkuchta commented on GitHub (Feb 13, 2018):
@xoofx do I have to do anything special to get the inline parser to work?
@xoofx commented on GitHub (Feb 13, 2018):
If the tags are correctly inside a paragraph/block line (and doesn't start it), afaik it works on almost any Markdown engine (Check babelmark)
@amkuchta commented on GitHub (Feb 13, 2018):
This may be my issue - my superscript tags are are on the ending of one line and the beginning of another. Is there any way to update the library to allow for these items to be at the beginning / end of a line?
Markdown Snippet
@amkuchta commented on GitHub (Feb 13, 2018):
FYI, this is all in reference to https://github.com/Kryptos-FR/markdig.wpf/issues/10 (which you are tagged in)
@xoofx commented on GitHub (Feb 13, 2018):
errata, starting at the line is working as well (check this babelmark)
@amkuchta commented on GitHub (Feb 18, 2018):
For my own edification, with regards to the above quote, is inline HTML converted to markdown or left as HTML? Looking at the "rendered" markdown, my inline
<sup>tags are not converted to markdown. According to @Kryptos-FR, he would rather not do any parsing of tags in MarkDig.WPF, but would rather relay solely on the output provided by MarkDig. Can MarkDig be updated to parse<sup>and<sub>tags to^and~?@xoofx commented on GitHub (Feb 23, 2018):
Not really fan of the idea. If you really need this, you can always try to develop and use your own extension.