johansatge / obsidian-automatic-table-of-contents

💠 An Obsidian plugin to create a table of contents in a note, that updates itself when the note changes
MIT License
128 stars 12 forks source link

Added Fix for Double Links Appearing when on Source View #49

Open ianTevesAcc opened 1 month ago

ianTevesAcc commented 1 month ago

An update for this Issue - Issue 47. In order to prevent styling issues caused by other plugins - creating double links in the automatic table of contents.

I just added a simple css addition targeting the double links meant for preview mode only to display: none;.

johansatge commented 1 month ago

thx for the PR,

it's not clear to me what issue does this solve, do you have a full example of problematic behavior that I can reproduce?

ianTevesAcc commented 1 month ago

@johansatge. I've had plugins in the past mess with the css of the table of links. I solved them with css snippets but thought it would be helpful to insert the css directly in order to prevent cases like mine in the future. Of course it's not needed. I just believed it to be helpful.