super and sub script support#966
Conversation
|
Thanks, but this project only parses the CommonMark spec or some extensions under flags. For this case, I guess Github Flavored Markdown must have support for superscriptsa and subscripts, and then such a specification could be used under the |
|
thanks for the reply @Martin1887 i could activate these extensions only with
I don't think super and sub script are in the GFM spec
I don't think strikethrough is in the CommonMark spec https://spec.commonmark.org/0.31.2/ but it is in the GFM spec https://github.github.com/gfm/#strikethrough-extension- and you are correct, my changes would break the GFM spec i have extensions to links and spoilers that i want to do so i guess i will just put them in my fork |
|
Uhm... it seems you are right about specs. I thought that all GFM features were under a flag but I guess developers then though that it cannot hurt. Some specs have superscripts and subscripts, so simply the most accepted one should be found before merging the changes under a flag. @notriddle? |
|
This definitely needs to be behind a configuration option. The default settings should parse CommonMark and nothing else. For figuring out how the extension should behave, I pay most attention to GFM, followed by these two:
Both implementations seem to follow the same basic format, where |
|
So it seems this could be merged after creating a new flag Moving the strike-through under the |
|
i have tried to put my changes behind a please let me know if i need to do anything further |
|
So strike-through is already under a flag, I understood from the previous messages it was not. I have to check in detail the code changes but it looks good, thanks! |
|
Also, it doesn't look like you've actually committed the specfiles. Please add them. |
|
I would recommend separating |
|
i have tried to address the issues mentioned above. this meant tweaking all the test rust files slightly with another optional test parameter what do you think? |
|
This seems like the right approach, yes. |
|
It seems good, but some errors must be solved before merging. Thanks! |
|
errors corrected @Martin1887 |
|
There is an error in |
|
done @Martin1887 :) |
hi there
i'm using your library and would like to extend it to render some extended MD things
i thought i'd start fairly simple and was wondering if you'd like these in the main library
i realise i have slightly changed some core code but it passes all the core spec tests.
i'm happy to make any changes you suggest.