tbluemel / rtf.js

Render RTF documents in HTML.
MIT License
147 stars 36 forks source link

Add support for superscript and subscript text #89

Closed kristianvalind closed 2 years ago

kristianvalind commented 2 years ago

RTF supports superscript text using \super and subscript text using \sub. \nosupersub is used to revert any of these modifiers. This pull request adds support for parsing and rendering these tags, along with a test case.

zoehneto commented 2 years ago

I just updated the dependencies on the master branch, so please rebase before updating the build.

kristianvalind commented 2 years ago

I just updated the dependencies on the master branch, so please rebase before updating the build.

I accidentally merged the changes instead. Please let me know if I should work around this somehow or if it's acceptable the way it is.

zoehneto commented 2 years ago

I just updated the dependencies on the master branch, so please rebase before updating the build.

I accidentally merged the changes instead. Please let me know if I should work around this somehow or if it's acceptable the way it is.

That works as well.

zoehneto commented 2 years ago

Thanks for making the fixes, I'll merge this PR now.