fb-instant-articles
fb-instant-articles copied to clipboard
Adds a default PassThroughRule for tag `<sup>`
This PR:
- [x] Adds PassThroughRule for tag
<sup>
Fixes #615
@everton-rosario What work is left here to get this merged?
Actually I'm not sure if I agree with this PR. I feel like we should rather define a new rule that converts a character wrapped in a <sub>
tag to its superscript equivalent. Otherwise the widely used m² would be converted to m2 for example. I think that would make people unhappy.
@timjacobi can you propose a patch that does what you want?
Someone at facebook, please point out to someone that can change things how absurd it is that these simple HTML tags don't work in IA.
It's sad that we have to consider these options.
Somehow this got lost in between releases.
I'll update the PR with the proper tags added.
We do render it not so gracefully into the UI of Instant Articles, though we do support the <sub>
/<sup>
tags.
I'll possibly change this PR to properly have the tags and the proper rules, so we don't need to bypass them, rendering it properly as sup
and sub
tags.