# Add support for the superscript/subscript HTML tags in the Outline (TOC)

**URL:** <https://forum.obsidian.md/t/add-support-for-the-superscript-subscript-html-tags-in-the-outline-toc/78695>\
**Category:** Feature requests\
**Tags:** outline, ui-ux\
**Created:** [March 16, 2024, 7:48am UTC](https://forum.obsidian.md/t/add-support-for-the-superscript-subscript-html-tags-in-the-outline-toc/78695 "2024-03-16T07:48:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![s4my](https://forum.obsidian.md/user_avatar/forum.obsidian.md/s4my/32/62784_2.png) [@s4my](https://forum.obsidian.md/u/s4my)\
**Post date:** [March 16, 2024, 7:48am UTC](https://forum.obsidian.md/t/add-support-for-the-superscript-subscript-html-tags-in-the-outline-toc/78695/1 "2024-03-16T07:48:18Z")

</div>

### Use case or problem

I noticed when I use a superscript `<sup></sup>` or subscript `<sub></sub>` tag in a header, the tags are displayed in the Outline (TOC) as **raw** HTML tags instead of rendering them correctly, which is _inconsistant_ with how the header is rendered in the editor’s view, e.g.: `# 1<sup>st</sup> note header` will be rendered as `1<sup>st</sup> note header` in the Outline.

### Proposed solution

It would be really nice if at least a sub-section of HTML tags are rendered correctly.

---

<div class="post-metadata">

**Author:** ![ariehen](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ariehen/32/46932_2.png) [@ariehen](https://forum.obsidian.md/u/ariehen)\
**Post date:** [March 16, 2024, 8:44am UTC](https://forum.obsidian.md/t/add-support-for-the-superscript-subscript-html-tags-in-the-outline-toc/78695/2 "2024-03-16T08:44:55Z")

</div>

The raw HTML of `<sup>` tags doesn’t render in the Outline in early access Obsidian v1.5.11. This may have been improved in one of the recent updates.

![CleanShot 2024-03-16 at 17.39.20](https://forum.obsidian.md/uploads/default/original/3X/a/6/a6c01073f778cf236e136c4c24126423e7ef6157.gif)

---

<div class="post-metadata">

**Author:** ![s4my](https://forum.obsidian.md/user_avatar/forum.obsidian.md/s4my/32/62784_2.png) [@s4my](https://forum.obsidian.md/u/s4my)\
**Post date:** [March 17, 2024, 1:04am UTC](https://forum.obsidian.md/t/add-support-for-the-superscript-subscript-html-tags-in-the-outline-toc/78695/3 "2024-03-17T01:04:58Z")

</div>

Oh cool, i can’t wait for the update. thank you for the quick reply btw.

---

<div class="post-metadata">

**Author:** ![s4my](https://forum.obsidian.md/user_avatar/forum.obsidian.md/s4my/32/62784_2.png) [@s4my](https://forum.obsidian.md/u/s4my)\
**Post date:** [March 20, 2024, 9:14am UTC](https://forum.obsidian.md/t/add-support-for-the-superscript-subscript-html-tags-in-the-outline-toc/78695/4 "2024-03-20T09:14:16Z")

</div>

Obsidian v1.5.11 just got released, and after a second look, that doesn’t look like a superscript to me; it looks like they just stripped the `<sup>` tags. Instead of 1st we got 1st.

---

<div class="post-metadata">

**Author:** ![Jopp](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@Jopp](https://forum.obsidian.md/u/Jopp)\
**Post date:** [February 27, 2025, 9:52am UTC](https://forum.obsidian.md/t/add-support-for-the-superscript-subscript-html-tags-in-the-outline-toc/78695/5 "2025-02-27T09:52:42Z")

</div>

If you’re still interested to get sub sup working, check out my [solution](https://github.com/Jopp-gh/Obsidian-Dune84/blob/main/Wiki/Text-highlight.md#sub--sup). It should just work.
