is it possible to support <sup> and <sub> tags using this library?
See original GitHub issueSince Draft.js only supports bold, italics, underline, code, and strikethrough natively, I’ve been trying to add subcript and superscript as well.
This seems like what I’m looking for, but so far I haven’t gotten things to work.
This is what <sub>subscript</sub> and <sup>superscript</sup> tags look like
Issue Analytics
- State:
- Created 7 years ago
- Comments:12
Top Results From Across the Web
HTML | Subscript and Superscript Tags - GeeksforGeeks
The <sup> tag defines the superscript text. Superscript text appears half a character above the normal line and is sometimes rendered in a ......
Read more >Html formatting - add support for <sup> and <sub> tags
Hi, Please implement support for <sup> and <sub> tags in your simple Html engine. These tags are very helpful when we need to...
Read more ><sup>: The Superscript element - HTML - MDN Web Docs
The <sup> HTML element specifies inline text which is to be displayed as superscript for solely typographical reasons.
Read more >7.5. Superscript, Subscript, Big, and Small Text - O'Reilly
Superscript, Subscript, Big, and Small Text. The superscript (<sup>) and subscript (<sub>) tags can be used to specify superscript and subscript text.
Read more >lightning-formatted-rich-text - Salesforce Developers
Displays rich text that's formatted with allowed tags and attributes. Other tags and attributes are removed and only their text content is displayed....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it should work with this configuration, assuming you have inline styles applied to your Draft
ContentState
of typesSUPERSCRIPT
andSUBSCRIPT
:@benbriggs Yes! That was it. Thanks.