obsidian-plugin-dynamic-toc icon indicating copy to clipboard operation
obsidian-plugin-dynamic-toc copied to clipboard

Markdown in headings rendered as plain text in TOC

Open af4jm opened this issue 3 years ago • 5 comments

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

af4jm avatar Feb 02 '22 19:02 af4jm

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.

Aidurber avatar Feb 03 '22 13:02 Aidurber

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)

af4jm avatar Feb 03 '22 21:02 af4jm

Thanks for breaking that down, it helps a lot.

  • Italics in header: I'm gonna mark that as a "wont fix", the markdown created by this plugin just gets fed into Obsidians markdown renderer. I would possibly need to build my own markdown renderer to patch that bug.
  • I might be able to do something about the link issue. I can reproduce this when I disable "Use [[Wikilinks]]" in Settings -> Files & Links. Currently Wikilinks are working fine, I'll see what I can do.

Aidurber avatar Feb 04 '22 08:02 Aidurber

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?

af4jm avatar Feb 04 '22 13:02 af4jm

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

asphaltbuffet avatar Mar 17 '22 12:03 asphaltbuffet