Skip to content
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

Failed loading extension "toc(permalink=true)" #1640

Closed
zbjornson opened this issue Sep 26, 2018 · 2 comments
Closed

Failed loading extension "toc(permalink=true)" #1640

zbjornson opened this issue Sep 26, 2018 · 2 comments

Comments

@zbjornson
Copy link

I'm not sure if this is an issue with Markdown or mkdocs.

# with Markdown==3.0.1
> mkdocs build
ERROR   -  Config value: 'markdown_extensions'. Error: Failed loading extension "toc(permalink=true)".

Reverting to Markdown==2.6.11 fixes it.

I'm not sure how to see why it failed to load, which seems like an important bit of info to have before reporting it to Markdown.

@waylan
Copy link
Member

waylan commented Sep 26, 2018

Including extension configs in the extension's name was deprecated in Markdown 2.6 (Pending Deprecation in Markdown 2.5). With Markdown 3.0 support has been completely removed.

You should be using MkDocs' documented method for defining extension configs:

markdown_extensions:
    - toc:
        permalink: true

@zbjornson
Copy link
Author

Thanks, wasn't aware of the upstream change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants