sanity-io / block-content-to-hyperscript

Function for transforming Sanity block content to HyperScript
MIT License
17 stars 8 forks source link

Serialize sup/sub HTML tags as marks by default #22

Open balazsorban44 opened 3 years ago

balazsorban44 commented 3 years ago

There are probably several HTML tags that could do the same, but in this PR I added only sub and sup.

Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup