Skip to content
Discussion options

You must be logged in to vote

Hello,
it's possible to customize the permalink icon with additional CSS. https://squidfunk.github.io/mkdocs-material/customization/#additional-css
You could look at the PyMdown Extensions documentation for reference https://facelessuser.github.io/pymdown-extensions/

The markdown_extensions toc needs to be configured with an empty string to remove the default paragraph unicode icon, you could also input any other valid text marker in that place, but you asked for a SVG specifically, so keep it empty.
https://github.com/facelessuser/pymdown-extensions/blob/899e811fa4e562b771a97073ad075c17d79851e8/mkdocs.yml#L93-L96

Then you need to add the SVG in CSS:
https://github.com/facelessuser/pymdow…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by squidfunk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants