Links with accentuated character #11
-
Thanks you for your fantastic work on this mkdocs plugin. I'm using it to make my doc which is bilingual, english and french. When I make a wikilink to a title in french that have some accentuated characters (é, à, apostrophe ' etc.), these characters are kept in the generated link, and then the link does not work. I have also multiple warning because I'm using If you could add accentuated character conversion, it will be great (I'll will make a try myself). Gilles |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @gilleschapron, This was done intentionally. I'm actually also using my plugin for bilingual docs (Ukrainian + English) and it somehow didn't work for me otherwise. Good news is that AFAIR it's possible to override this behavior in the config. Bad news is that I don't remember how exactly. Let me check, pls. |
Beta Was this translation helpful? Give feedback.
-
So, as I see in the code, I depend on the However, if you redefine it to Maybe, you can try something like this in your markdown_extensions:
- toc:
permalink: true
slugify: !!python/object/apply:markdown.extensions.toc.slugify |
Beta Was this translation helpful? Give feedback.
-
As it with your trick it does not work. But following your link I found this: And with: markdown_extensions:
- markdown.extensions.toc:
slugify: !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}} it seems it works for me! Thanks ! |
Beta Was this translation helpful? Give feedback.
As it with your trick it does not work.
But following your link I found this:
https://facelessuser.github.io/pymdown-extensions/faq/#function-references-in-yaml
And with:
it seems it works for me!
Thanks !