Aidurber / obsidian-plugin-dynamic-toc

An Obsidian plugin for creating Tables of Contents that stay updated with your document
MIT License
269 stars 41 forks source link

Markdown in headings rendered as plain text in TOC #45

Open af4jm opened 2 years ago

af4jm commented 2 years ago

I noticed this using [[_TOC_]], but earlier today I switched to the code block syntax and updated to the latest plugin version, and I'm still seeing the behavior... below screenshots are with the code block syntax and plugin v 0.0.26

image

screenshots of the bug:

image

image

Aidurber commented 2 years ago

I'm unable to reproduce this, can you provide me a sample document exactly how you have it setup. I can't make out what the actual bug is here.

af4jm commented 2 years ago

sure, in the first screenshot, there's italics in the headers

#### C1: *Inappropriate Information*

should render in the TOC as C1: Inappropriate Information (probably with the italics) not C1: *Inappropriate Information*

in the second one there's a link in the header

### [click here](./README.md)

should render in the TOC as click here but instead renders as [click here](./README.md)

Aidurber commented 2 years ago

Thanks for breaking that down, it helps a lot.

af4jm commented 2 years ago

good points, I have wikilinks disabled because I use VSCode on the desktop, with Obsidian in the background for syncing... now that I'm paying more attention, I see the same issues in the page outline view... maybe I should report that, because if it's fixed it might resolve both issues here as well?

asphaltbuffet commented 2 years ago

I see a similar issue when putting icons in my headers. They don't get rendered appropriately. Seems like it's likely related to the rendering in TOC.

## `fas:ThList` Agenda

## `ris:CheckboxMultiple` Tasks
### Carried Forward

Should look like these: image

but the TOC looks like this instead: image