onlyafly / number-headings-obsidian

Automatically number headings in a document in Obsidian
MIT License
104 stars 11 forks source link

Table of content becomes a code block. #23

Closed joezhouchenye closed 2 years ago

joezhouchenye commented 2 years ago

The auto toc adds a tab before the toc content which will result in a code block in the preview mode.

onlyafly commented 2 years ago

@joezhouchenye I'm not able to reproduce this bug. Can you give me an example?

joezhouchenye commented 2 years ago

Thanks for replying. After a few attempts, I have found what causes this bug. If the file has a first-level heading, the auto toc works well. However, in a file that starts from a second-level heading, the bug appears.

Without H1 image

With H1 image

onlyafly commented 2 years ago

Fixed in version 1.9.0