Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Generate real Markdown dynamically #10

Open
redactedscribe opened this issue Oct 3, 2023 · 2 comments
Open

Generate real Markdown dynamically #10

redactedscribe opened this issue Oct 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@redactedscribe
Copy link

It would be great if the codeblock containing the settings for the TOC could be defined elsewhere, e.g. via the plugin settings page. Then a TOC with a predefined style could be inserted via the Command Palette. The benefit would be that we could insert real Markdown code which would therefore be visible and useable in other Markdown viewers, not only Obsidian, and for example online.

These TOCs inserted via the Command Palette should also be tracked and dynamically updated when headings are added or removed, again with real Markdown, otherwise it would be static and soon outdated.

It would also be cool if a TOC defined via a codeblock could be converted into real Markdown in case you want to export the file or something.

I don't have much experience with your plugin, but it seems like this feature request calls into question what purpose codeblock TOCs would serve if real inserted Markdown would behave the same but with the additional benefit of being portable.

In short, dynamic TOCs are great, but I'd much prefer if it was real Markdown code (VS Code has a plugin which does this FR nicely).

Thanks!

@johansatge johansatge added the enhancement New feature or request label Oct 8, 2023
@redactedscribe
Copy link
Author

@rajesh-s No, not for Obsidian.

@g-berthiaume
Copy link

+1 for generating real markdown.
If this plugging or the obsidian's projects gets abandoned, I would like for my table of content to still exist.

Thanks for your work @johansatge !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants