# Headings with Numbers miss in TOC (Outline of Heading)

**URL:** <https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155>\
**Category:** Bug graveyard\
**Tags:** repro, ui-ux, important, internal-links\
**Created:** [August 15, 2023, 11:50pm UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155 "2023-08-15T23:50:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzee](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mzee](https://forum.obsidian.md/u/mzee)\
**Post date:** [August 15, 2023, 11:50pm UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/1 "2023-08-15T23:50:13Z")

</div>

I think this could be related to a past bug report: [Linking to the note heading with a number.number omits the period](https://forum.obsidian.md/t/linking-to-the-note-heading-with-a-number-number-omits-the-period/3403)

## Behaviour:

Create a Markdown file as usual, set a heading (any level heading will have this issue, just use the hash tag prefixes followed by a space and your heading name).

Change the heading name to include a number and a dot or a right parenthesis.

Notice now the TOC lost the heading number!

Screenshot: Green arrows show correct TOC (Outline of Heading) and the red show the incorrect interpretation due to loss of the prefix numbering.

 ![Pasted image 20230816095241](https://forum.obsidian.md/uploads/default/original/3X/b/e/be13c8e3388573fa1a29690eceee0426d1396d63.png)

## Expected:

The TOC heading number should be there.

## Work around for now:

I started using hyphens (even though it looks ugly) instead of a dot or a parenthesis as it should be in a heading and it works just for my notes, not for sharing as that may confuse people.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [August 16, 2023, 12:30am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/2 "2023-08-16T00:30:48Z")

</div>

no, it’s not related to that.

This happens because now the the heading in the outline are heavily sanitized.

---

<div class="post-metadata">

**Author:** ![Seyee](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@Seyee](https://forum.obsidian.md/u/Seyee)\
**Post date:** [September 19, 2023, 8:07am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/3 "2023-09-19T08:07:21Z")

</div>

I also think the numbers in the red arrows should be kept in the TOC

---

<div class="post-metadata">

**Author:** ![foreversun](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/a3d4f5/32.png) [@foreversun](https://forum.obsidian.md/u/foreversun)\
**Post date:** [September 19, 2023, 7:07pm UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/4 "2023-09-19T19:07:52Z")

</div>

Hello,

i have a similarly problem:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/7/2/72d2c18aae9ec9d9a45d3e240cacfc230e1ae211.png)

In the h1-Header:

- with the point, the one will not be show.
- without the point, the one will be show.

best wishes  
foreversun

---

<div class="post-metadata">

**Author:** ![mzee](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mzee](https://forum.obsidian.md/u/mzee)\
**Post date:** [October 5, 2023, 3:43pm UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/5 "2023-10-05T15:43:04Z")

</div>

Found another thread, discussing the same matter:

> [@If my heading has "1. ", in the outline, the number will not be displayed](https://forum.obsidian.md/t/if-my-heading-has-1-in-the-outline-the-number-will-not-be-displayed/67683):
>
> These numbers should not be hidden

---

<div class="post-metadata">

**Author:** ![Vizzale](https://forum.obsidian.md/user_avatar/forum.obsidian.md/vizzale/32/54979_2.png) [@Vizzale](https://forum.obsidian.md/u/Vizzale)\
**Post date:** [October 9, 2023, 7:08am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/6 "2023-10-09T07:08:26Z")

</div>

Hi @mzee, I have the same problem.

 ![screenshot](https://forum.obsidian.md/uploads/default/original/3X/d/b/db3a179fad578e417be2973e3afe06b1f9af4775.jpeg)

I find that numbered lists are often fundamental for structuring a text and for an overall vision in the TOC. Can anyone tell us if there is a fix for this problem?

---

<div class="post-metadata">

**Author:** ![BambooBastille](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/ec9cab/32.png) [@BambooBastille](https://forum.obsidian.md/u/BambooBastille)\
**Post date:** [October 10, 2023, 8:07am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/7 "2023-10-10T08:07:22Z")

</div>

+1 that numbers shouldn’t be stripped from the TOC! Please. 🙏🏼

---

<div class="post-metadata">

**Author:** ![Georgios](https://forum.obsidian.md/user_avatar/forum.obsidian.md/georgios/32/21620_2.png) [@Georgios](https://forum.obsidian.md/u/Georgios)\
**Post date:** [October 10, 2023, 11:40am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/8 "2023-10-10T11:40:31Z")

</div>

+1 please

@WhiteNoise are we planning to correct this please?

 ![image](https://forum.obsidian.md/uploads/default/original/3X/3/a/3aefe0a54512329c5c36bd9d63bd53f9fe533b6b.png)

---

<div class="post-metadata">

**Author:** ![kenNash](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/k/ce73a5/32.png) [@kenNash](https://forum.obsidian.md/u/kenNash)\
**Post date:** [October 31, 2023, 9:35am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/9 "2023-10-31T09:35:04Z")

</div>

+1 here

🙏

---

<div class="post-metadata">

**Author:** ![aho](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@aho](https://forum.obsidian.md/u/aho)\
**Post date:** [November 16, 2023, 6:08am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/10 "2023-11-16T06:08:12Z")

</div>

Same here.

---

<div class="post-metadata">

**Author:** ![mzee](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mzee](https://forum.obsidian.md/u/mzee)\
**Post date:** [November 17, 2023, 11:23pm UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/11 "2023-11-17T23:23:10Z")

</div>

Since Version 1.4.16 (Installer 1.4.13) this issue seem to have gotten worse.  
None of the numbering appear now in the Outline view.

 ![image](https://forum.obsidian.md/uploads/default/original/3X/d/d/dd41354882d317b5b0982205cddd56b65d970f84.png)

Notice now all levels not showing the numbering in the Outline view.

Expected behaviour is to show the content of the heading as-is in the Outline view.

---

<div class="post-metadata">

**Author:** ![noodlesen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/6f9a4e/32.png) [@noodlesen](https://forum.obsidian.md/u/noodlesen)\
**Post date:** [November 22, 2023, 9:27am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/12 "2023-11-22T09:27:27Z")

</div>

Completely agree! This is very frustrating behavior. At least it should be optional (maybe some toggle in the settings)

---

<div class="post-metadata">

**Author:** ![mzee](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mzee](https://forum.obsidian.md/u/mzee)\
**Post date:** [December 13, 2023, 3:55am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/13 "2023-12-13T03:55:12Z")

</div>

Team, can we get this fixed please?

---

<div class="post-metadata">

**Author:** ![ush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/8e7dd6/32.png) [@ush](https://forum.obsidian.md/u/ush)\
**Post date:** [December 13, 2023, 7:09am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/14 "2023-12-13T07:09:28Z")

</div>

If this isn’t planned to be fixed in the short run, it’s a good idea to make a plugin that fixes this instead. And I’m pretty sure it’s not that hard.

You can refer to this code to render MathJax in the outline for how to modify what’s displayed in it.

> <https://github.com/zhaoshenzhai/obsidian-mathlinks/blob/master/src/outline.ts>

---

<div class="post-metadata">

**Author:** ![mcaay](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@mcaay](https://forum.obsidian.md/u/mcaay)\
**Post date:** [December 17, 2023, 11:19am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/15 "2023-12-17T11:19:00Z")

</div>

Hey, I found a better workaround than the OP’s hyphen.

> **Just use non-breaking space after the dot instead of a normal space.**

On mac you can make a non-breaking space with Alt+Space. Imperfect, but probably the best we have for now.

---

<div class="post-metadata">

**Author:** ![ush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/8e7dd6/32.png) [@ush](https://forum.obsidian.md/u/ush)\
**Post date:** [December 18, 2023, 5:38am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/16 "2023-12-18T05:38:10Z")

</div>

Hey, I wrote a plugin to fix this. Hope it helps!

> **[GitHub - RyotaUshio/obsidian-outline-plus](https://github.com/RyotaUshio/obsidian-outline-plus)**
>
> Contribute to RyotaUshio/obsidian-outline-plus development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![binjomin](https://forum.obsidian.md/user_avatar/forum.obsidian.md/binjomin/32/57952_2.png) [@binjomin](https://forum.obsidian.md/u/binjomin)\
**Post date:** [January 7, 2024, 10:10am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/17 "2024-01-07T10:10:13Z")

</div>

Hi, I tried to install, but it is still showing the same.

Also, I tried Alt+Space, but it didn’t help either.

---

<div class="post-metadata">

**Author:** ![ush](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/8e7dd6/32.png) [@ush](https://forum.obsidian.md/u/ush)\
**Post date:** [January 7, 2024, 10:12am UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/18 "2024-01-07T10:12:13Z")

</div>

@binjomin ~~Can you send me a copy of the note that my plugin failed on?~~

Now I can confirm ~~it’s~~ it was not working and this ~~is~~ was due to the update from Obsidian v1.4 to v.1.5.  
~~I will try to fix it.~~ I have fixed it and released it as v0.2.0.  
Thank you for letting me know.

FYI, the Quiet Outline plugin has a more advanced feature (but not Obsidian’s native outline view).

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [February 5, 2024, 11:01pm UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/19 "2024-02-05T23:01:26Z")

</div>

will be fixed 1.5.4

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [February 12, 2024, 11:02pm UTC](https://forum.obsidian.md/t/headings-with-numbers-miss-in-toc-outline-of-heading/65155/20 "2024-02-12T23:02:19Z")

</div>

Closed on February 12, 2024, 11:02pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
