Replies: 1 comment 1 reply
-
Hi @fanchyfanch! Thanks for your kind feedback :) That is currently customizable - I think we're just missing a link to this information from the HeadingPermalink extension docs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was glad this week-end when I found your bundle to convert Markdown to HTML with all your extensions.
But I was surprised when I tried the HeadingPermalinkExtension combined with the TableOfContentsExtension; I'm french and the generated slugs keep accents and do not replace apostrophe as expected (empty string instead of '-').
I was wondering if you could implement directly the new dedicated component Symfony\Component\String\Slugger\AsciiSlugger?
This would ensure coherence over applications.
Moreover, that would be great if we could pass a callback for formating it. For example, in my case, my titles got some content between parentheses but I don't want the slugs to reflect this information and I'd like to strip it when generating slug. That would be a cool option too. :-)
Thank for your answer about it.
Beta Was this translation helpful? Give feedback.
All reactions