-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
TOC has unexpected behavior when not top of note #1602
Comments
If you leave a newline before the
This is probably a bug with the toc plugin that joplin uses. |
That makes a certain kind of sense. I've experienced at least one markdown parsers than required newlines between different block elements. Joplin seems pleasantly tolerant (other than with toc!). I made a quick test with the demo.html from markdown-it-toc-done-right without reproducing the issue, but that's a pretty different use case. This may not be an issue worth pursuing: a note in a doc might be helpful, though. Or this (closed) bug report might be adequate. |
That's interesting, I notice that the demo uses slightly different version of |
After some quick testing it was clear that this was a bug that had been fixed in the newest version of the plugin, but since the plugin isn't very transparent about those things it was clear at first. |
Operating system
Application
When I leave a title for my note at the very top (which is conveniently copied into the empty title of a new note: thanks!), and throw in a
[toc]
on the next line, I end up with three tables of contents. If I remove that title so that the[toc]
is at the very top of the note, then I get the expected behavior (only a single table of contents).The text was updated successfully, but these errors were encountered: