Open macabeus opened 7 years ago
Update.
Using MARKDOWN = {'extensions': ['toc']}
I can execute the plugin.
But, this causes bug in my codes inside tag ```.
@macabeus: Were you able to find a solution to your problem here?
It seems to work if you take the default MARKDOWN
setting and add the extract_toc
to it:
I took the MARKDOWN
from the documentation http://docs.getpelican.com/en/3.7.1/settings.html?highlight=MARKDOWN
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
},
'output_format': 'html5',
'extensions' : ['toc']
}
As a Pelican 3.7, the
MD_EXTENSIONS
is deprecated, then we need useMARKDOWN
instead. But, the extract_toc's documentation is outdated:And I don't know how to use
MARKDOWN
. How to solve this?