You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Markdown, this plugin is less relevant since the Python-Markdown library includes a Table of Contents extension that will generate link anchors. To enable the toc extension, add a line similar to the following example to your Pelican settings file
I don’t think that “Table of Contents” is a better solution, and I think it would be nice if the headerid plugin could be used by Markdown users who don’t use “Table of Contents”.
Thanks.
The text was updated successfully, but these errors were encountered:
@ionelmc, @albertodonato, @stevepiercy
1. Summary
It would be nice if Markdown users can use headerid.
2. MCVE
2.1. The part of pelicanconf.py
2.2. KiraArticle.md
2.3. Command
2.4. Behavior
2.4.1. Current
headerid doesn’t add permalink.
2.4.2. Desired
Adding permalink.
3. Markdown TOC plugin
From headerid documentation:
But I use MarkdownTOC Sublime Text package instead of “Table of Contents” Python Markdown extension. I can use “Table of Contents” Python Markdown extension, adding to my
pelicanconf.py
these lines:But I get in the output:
“Table of Contents” doesn’t support non-ASCII symbols in headers. It adds
href="#_1"
instead ofhref="#Кира-Богиня"
. Also in “Table of Contents”, unlike MarkdownTOC, users haven’t ability to determine which characters to remove from id. “Table of Contents” doesn’t have other MarkdownTOC options.I don’t think that “Table of Contents” is a better solution, and I think it would be nice if the headerid plugin could be used by Markdown users who don’t use “Table of Contents”.
Thanks.
The text was updated successfully, but these errors were encountered: