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

Forcing tight newline-spacing in TOC #37

Closed Gewerd-Strauss closed 2 years ago

Gewerd-Strauss commented 2 years ago

Hello,

I have a small question, as the code you use in your reame

image

doesn't seem to work on my end. Fresh install, settings are the following:

image

This is the result on my end:

image

I'd like to condense it - because otherwhise this can easily become very large on certain notes. I don't need the newlines inbetween entries.

Is that possible/Why do I get different results?


Sincerely, ~Gw

Aidurber commented 2 years ago

Hi @Gewerd-Strauss,

I'm afraid I can't reproduce this.

  1. Are you using the Live Preview feature in Obsidian?
  2. Can you reproduce this on the latest version 0.0.23? I'm thinking your issue is the same as #33

My theory is some custom CSS rule. Can you tell me which theme you are using?

Below are 2 screenshots:

Gewerd-Strauss commented 2 years ago

This is interesting.

I am using the Shimmering Focus theme. Well, I am using four themes, depending on vault. However, when I created this issue I previously tested it on all my themes (including default), with the same problem happening across all vaults, themes and combinations.

Now, I just did so again since you cannot reproduce it.

No matter the theme/anything, I cannot reproduce it either, suddenly. image (Left is editor, right is preview)

I don't use any CSS snippets beyond the css of the Shimmering focus theme, but since this was happening independent of the active theme, I don't think it's the cause.

I have no idea what caused it, nor what resolved it again. We can close this issue. The next time I notice this happening, I'll make a copy of my vault and we'll where the problem lies.

Aidurber commented 2 years ago

I'm glad to hear @Gewerd-Strauss, thanks for keeping me updated!