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

!!python/object/apply:pymdownx.slugs.slugify is removed from mkdocs.yml #10013

Closed
y-young opened this issue Feb 10, 2023 · 3 comments
Closed

Comments

@y-young
Copy link

y-young commented Feb 10, 2023

Details

Expected Result

mkdocs.yml retains !!python/object/apply:pymdownx.slugs.slugify tag and documentation successfully built

markdown_extensions:
  - toc:
      permalink: true
      slugify: !!python/object/apply:pymdownx.slugs.slugify
        kwds:
          case: lower

Actual Result

The tag is removed, causing build to fail:

markdown_extensions:
- toc:
    permalink: true
    slugify: null

Note

The configuration is to support TOC slugify for unicode (https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/?h=slugify#unicode)

https://facelessuser.github.io/pymdown-extensions/extras/slugs/

@stsewd
Copy link
Member

stsewd commented Feb 13, 2023

Hi! This is the same issue as #8529. RTD reads the config file to inject some things, and the special yaml syntax isn't supported, so the parser will set those to null.

@stsewd stsewd closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
@y-young
Copy link
Author

y-young commented Feb 13, 2023

Hi, I saw the current solution here, is there any plan to support these tags in the future? Now I use build process override as a workaround.

@stsewd
Copy link
Member

stsewd commented Feb 13, 2023

I'd +1 on a solution to just securely allow all type of tags.

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