hipstersmoothie / obsidian-plugin-toc

Create a tables of contents for a note.
286 stars 20 forks source link

Add option to switch between Obsidian and Github styles #8

Open maksyche opened 3 years ago

maksyche commented 3 years ago

Thank you for the plugin, it's awesome!

I often work on Github docs and modified the plugin to support Github-styled TOC ([Some header](#some-header)). I think it would be nice to have an option to switch between Obsidian and Github styles.

hipstersmoothie commented 3 years ago

Does that sort of link in your note work for you? I still have to use [Some header](#Some header)

maksyche commented 3 years ago

Obsidian highlights Github-styled links but doesn't jump to the headers. But it's still very useful when working on GitHub docs.

hipstersmoothie commented 3 years ago

Okay! I'll add a warning about that

maksyche commented 3 years ago

Thanks a lot! Have a nice day🙂

fev4 commented 3 years ago

Hey, awesome plugin! Thanks a ton

I have a suggestion:

image

I have this option deactivated in Obsidian, maybe there's a way to read this setting so there's no collision between link styles?

Currently the plugin forces the wiki link style but I use markdown links for ease of use with pandoc, maybe there's a middle ground for this?

hipstersmoothie commented 3 years ago

If there is a way to read that setting as the default I'm all for setting it! Is this something you could contribute?