-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
pelican markdown : No module named 'markdown.extensions.headerid' #2968
Comments
Pelican's default |
Hi @phwuil. If you need further assistance with this issue, please comment here and let us know. |
This worked for me in my MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {'permalink': True},
},
'output_format': 'html5',
} That combines the default |
also add pilcrow permalinks See: * https://python-markdown.github.io/extensions/toc/ * https://docs.getpelican.com/en/latest/settings.html#basic-settings Sorta related, not really, just saving for later: * https://stackoverflow.com/questions/63788415/show-header-permalink-on-hover-pelican (that's about restructuredText, but there is some info about markdown, although it is incomplete as is leaves out defaults) * getpelican/pelican-plugins#1397 (repo is deprecated) * getpelican/pelican#2968 (added some helpful info for next person searching)
I enjoy the following settings just so that others can see what is out there. MARKDOWN = {
'extension_configs': {
'markdown.extensions.smarty': {},
'markdown.extensions.extra': {},
'markdown.extensions.footnotes': {},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {'baselevel': 1},
'markdown.extensions.codehilite': {'css_class': 'codehilite'}
},
'output_format': 'html5'} |
I have read the Filing Issues and subsequent “How to Get Help” sections of the documentation.
I have searched the issues (including closed ones) and believe that this is not a duplicate.
OS version and name: Manjaro Linux 21.2.1
Python version: 3.10.1
Pelican version: pelican==4.7.1
Markdown: Markdown==3.3.6
Issue
Hi,
It seems that Markdown has deprecated (and even removed) the extension headerid (https://python-markdown.github.io/change_log/release-3.0/#headerid-extension-deprecated).
When trying to generate my site with pelican (make html), I received this error message for each
.md
file :Thanks !
The text was updated successfully, but these errors were encountered: