Skip to content

Which symbols are available for permalinks ? #2135

Answered by facelessuser
TRaSH- asked this question in Q&A
Discussion options

You must be logged in to vote

Any symbols you want are available assuming you provide the font that contains them. In the case of Pymdown-Extensions, I actually don't use symbols but use SVG images instead: https://github.com/facelessuser/pymdown-extensions/blob/master/docs/src/scss/extensions/_toc.scss. I set the symbol to nothing, and then target it with CSS to add a background image. When I build my CSS, the SVG is embedded in the CSS. So there is a bit of complexity involved as to how I do it, but you don't have to do all of that.

An easier approach is to provide some CSS that includes a font (with symbols) that you prefer, and then provide the appropriate character code in the TOC extension for permalinks.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TRaSH-
Comment options

Answer selected by markallasread
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