-
-
Notifications
You must be signed in to change notification settings - Fork 879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for <sub> and <sup> #405
Comments
is there any progress on this? |
There is a remark plugin to support this https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-sub-super Which may work already, if not #428 would allow for it to work. |
@ChristianMurphy this plugin doesn't work. I am sorry but I am very confused trying to track down the issues/pull-requests regarding this feature. Is there someone who knows what we need to do to get a sub/sup tag working? |
If you are using an HTML tag to add sub/sup, then yes: that’s HTML and it’s dangerous. If you want a markdown-like “construct”, remark-sub-sup hasn’t been updates for the latest parser, which is tracked here: zestedesavoir/zmarkdown#416. |
I would like to use anything available really, markdown syntax preferable ofcourse to be more user friendly. Seems like the dangerous html route is the only way to get this working as of right now. I am personally ok with this because my input is very controlled by an admin, but I assume not everyone will be covered as I. |
We’re working on making the HTML better, such as sanitizing it by default (see @ChristianMurphy’s PR above), but we’re splitting it over several majors to not break too many things at once |
The way I solved this and other may find useful is as per below with use of components:
with above code i can use ^® or ^th for superscripts and ~1 for subscripts. hope above is useful. |
No description provided.
The text was updated successfully, but these errors were encountered: