Skip to content
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 superscript and subscript #34

Merged

Conversation

Mr0grog
Copy link
Owner

@Mr0grog Mr0grog commented Apr 18, 2022

You can have superscript and subscript text in Google Docs, but this app would previously remove the formatting. We now keep it in place, even if it outputs unfortunately verbose markup: most Markdown flavors have no markup for superscript or subscript, so we output HTML tags, e.g:

This<sub>is subscripted</sub> and this<sup>is superscripted</sup> text.

This also updates most of our Rehype and Unified dependencies (they offer some new utilities and fixes that make this feature easier to implement). I did not update Remark here, though, since it has some major changes in v8 that need more careful review (really, I should have some tests).

Fixes #33.

Mr0grog added 2 commits April 17, 2022 19:09
These have some helpful additions and fixes we should be using. `remark-stringify` is *not* upgraded here since it had a major change in v8 that needs more careful evaluation.
@Mr0grog Mr0grog merged commit ef0a7a2 into main Apr 18, 2022
@Mr0grog Mr0grog deleted the 33-is-superscript-a-tag-or-is-it-a-style-in-fact-it-can-be-either branch April 18, 2022 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Superscripts turn into non superscript
1 participant