-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
underscore are discarded inside the table of content #43
Comments
Hi, this is "expected" in the current implementation because markdown characters ( But there are probably possible improvements, feel free to share methods to strip markdown characters in a more efficient way 🙏 |
what do you use to strip the markdown characters ? |
obsidian-automatic-table-of-contents/main.js Lines 177 to 182 in f6af983
|
If I clearly understand |
Last option but the simpler : Adding an option inside the toc for discarding the MD code or not inside the link. |
I suggest placing the link after the text. For example, if this is the original text:
We can simply add a link after it like this:
Alternatively, we could implement auto-numbering and include the link within the numbered section. For instance, "1.2" could also serve as a link:
Above approaches offer additional benefit, such as preserving the original pretty formatting of the text done by various plugs/themes/users, while also addressing issues #24 and #27. |
In my case as a user of Numbering Plugins , if the second approach is chosen, we can add an option to let the user decide whether the numbering is provided by the text. If yes, just add link to the stuff before the first space is enough. |
Hello
When headers contain underscore _, the underscore is removed inside the toc.
the toc should keep the underscore that come from the header.
How to reproduce :
test_with_underscore
_test_with_an_other_underscore
Tested on MacOs with obsidian 1.5.12
plugins installed:
Thanks.
The text was updated successfully, but these errors were encountered: