TypeError: slugify() takes 0 positional arguments but 2 were given #2120
-
I see deprecated warning about using
I changed markdown_extensions:
- toc:
baselevel: 2
permalink: true
slugify: !!python/name:pymdownx.slugs.uslugify To this markdown_extensions:
- toc:
baselevel: 2
permalink: true
slugify: !!python/name:pymdownx.slugs.slugify This is caused by my {%
include-markdown "../README.md"
%}
pip freeze
Anyone can help? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You are using the wrong syntax, please read this and let me know if you are still confused: https://facelessuser.github.io/pymdown-extensions/about/releases/9.0/#one-slugify-to-rule-them-all |
Beta Was this translation helpful? Give feedback.
-
After read advice from @facelessuser i changed - markdown.extensions.toc:
baselevel: 2
permalink: true
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
percent_encode: true And solved the problem. Thank you for your helpful response @facelessuser |
Beta Was this translation helpful? Give feedback.
You are using the wrong syntax, please read this and let me know if you are still confused: https://facelessuser.github.io/pymdown-extensions/about/releases/9.0/#one-slugify-to-rule-them-all