← All updates

<sup> renders as a real superscript

Markdown notes that use <sup> — Wikipedia-derived transliterations, ordinals, footnote-style markers — now draw the run smaller and raised on the same line, with no gaps around it.

markdowntypography

<sup> is common in notes copied from Wikipedia and other reference sources: Aŋra Ma<sup>i</sup>niiu, ordinal suffixes like 1<sup>st</sup>, exponents and footnote-style markers. Until now the tag was treated as unknown, so its text was left at full size on the baseline with a visible gap on either side of the short run.

Superscripted text now renders at 75% of the surrounding size, raised by 0.33em, on the same baseline. Because the rise is a property of how the run is drawn rather than of the line box, the line keeps its normal height — a superscript never pushes the lines around it apart. Copying or extracting the text reads the word continuously: Ma<sup>i</sup>niiu comes out as Mainiiu.

It works wherever inline HTML works: plain paragraphs, bold and italic runs, links, headings (the 75% is relative to the heading's own size, so it stays proportional) and table cells. The same run stays inline in the PDF's structure tree, so screen readers still read it as part of its sentence.

The gaps that used to appear around a short run came from how inline spans were positioned, not from the tag itself: every span boundary used to gain up to a point of extra space. That systematic point is gone, and the boundaries on either side of a superscript are placed to the glyph, so no rounding gap opens around it.