// Superscript/Subscript
if (!(extensions & EXT_COMPATIBILITY)) {
- token_pair_engine_add_pairing(e->pairings4, SUPERSCRIPT, SUPERSCRIPT, PAIR_SUPERSCRIPT, 0);
- token_pair_engine_add_pairing(e->pairings4, SUBSCRIPT, SUBSCRIPT, PAIR_SUPERSCRIPT, 0);
+ token_pair_engine_add_pairing(e->pairings4, SUPERSCRIPT, SUPERSCRIPT, PAIR_SUPERSCRIPT, PAIRING_PRUNE_MATCH);
+ token_pair_engine_add_pairing(e->pairings4, SUBSCRIPT, SUBSCRIPT, PAIR_SUBSCRIPT, PAIRING_PRUNE_MATCH);
}
}
break;
case SUPERSCRIPT:
case SUBSCRIPT:
- if (e->extensions & EXT_COMPATIBILITY)
+ if (e->extensions & EXT_COMPATIBILITY) {
+ t->type = TEXT_PLAIN;
break;
+ }
offset = t->start;