Small Text in Markdown: <small>, <sub>, <sup> and What Works on GitHub and Discord

Markdown has no syntax for small text. Use <small> where HTML is allowed, <sub> or <sup> on GitHub, -# subtext on Discord, or Unicode small letters where nothing else works.

Markdown has no syntax for small text. What you can do depends on whether the place you are writing allows HTML:

Normal text <small>and some small text</small>.

Normal text and some small text.

That is the right answer for static sites, documentation generators, Obsidian and anything else that passes HTML through. For GitHub, Discord and chat apps the answer is different.

What works where

Where Small text Notes
Static site generators, MkDocs, Docusaurus, Obsidian <small>text</small> Or a CSS class, since you control the stylesheet
GitHub README, issues, comments <sub>text</sub> or <sup>text</sup> Both are in GitHub's own formatting docs. Inline style attributes are removed
Discord -# text at the start of a line Discord calls this subtext. It is small and gray
Jupyter notebooks <small>text</small> Markdown cells render HTML
Slack, WhatsApp, Reddit none No size control
Plain text fields, bios, social posts Unicode small letters Not formatting. See the last section

The <small> tag

<small> is the HTML element for side comments and fine print: licenses, caveats, "last updated" lines. Browsers draw it one step smaller than the surrounding text.

Prices exclude tax. <small>Last checked 2026-11-19.</small>

It is inline, so it goes inside a paragraph, list item or table cell. To make a whole paragraph small, wrap the text inside the paragraph, and leave Markdown formatting outside the tag if your renderer does not process Markdown inside HTML:

<small>This whole paragraph is fine print.</small>

GitHub: use <sub> or <sup>

GitHub documents <sub> and <sup> for subscript and superscript, and both also make the text smaller. People use them for captions under images and for fine print in READMEs:

![Architecture diagram](docs/arch.png)
<sub>Figure 1: request flow through the gateway.</sub>

The side effect is the vertical shift: subscript sits low, superscript sits high. Nesting one inside the other brings the text back near the baseline while keeping it small:

<sup><sub>Small text that sits close to the normal line.</sub></sup>

You cannot set an exact size on GitHub. <span style="font-size: 10px"> and <font size="1"> are stripped, because GitHub removes style attributes from user content.

For real subscripts and superscripts (H2O, x2), see the subscript and superscript guide.

Discord: subtext

Discord added its own syntax. Start a line with -# (hyphen, pound sign, space):

-# This line is small and gray

It applies to the whole line and cannot be used in the middle of a sentence. The Discord text formatter previews it together with headers and the rest of Discord's formatting, the Discord small text and big text page has the rules and fixes, and the Discord cheat sheet lists everything Discord supports.

Exact sizes with CSS

If you control the site, a class gives you an exact size and keeps the Markdown clean:

<span class="fine-print">Terms apply.</span>
.fine-print { font-size: 0.8em; color: #555; }

Some renderers let you attach a class without HTML. Pandoc and kramdown accept attribute syntax:

[Terms apply.]{.fine-print}        <!-- Pandoc -->
Terms apply.
{: .fine-print}                    <!-- kramdown -->

Keep small text readable. Body text below roughly 12px is hard to read on phones, and low-contrast gray makes it worse.

Footnotes are often what you wanted

If the small text is a caveat or a source, a footnote does the job with real Markdown and no HTML. Most renderers draw footnotes smaller at the bottom of the page:

The API is rate limited.[^1]

[^1]: 100 requests per minute per key.

The footnote tool numbers and orders them for you.

Where nothing works: Unicode small letters

Slack messages, LinkedIn posts, bios and usernames have no size control at all. The workaround is text made of Unicode characters that are drawn small: small capitals (ꜱᴍᴀʟʟ ᴄᴀᴘꜱ), superscript letters (ˢᵘᵖᵉʳˢᶜʳⁱᵖᵗ) and subscript letters. The small text generator converts text into all three and shows which letters have no small version (subscript only covers 17 letters). For formulas such as x² or H₂O, the superscript generator and subscript generator also give you the <sup>, Pandoc and LaTeX versions.

This is a different thing from formatting. The characters are not the letters you typed, so search will not find them and screen readers may read them oddly. It is fine for a decorative line in a bio. It is the wrong choice inside a document.