Which symbols are available for permalinks ? #2135
-
Which symbols are available for permalinks ? I'm actually looking for the option to use a chain like here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.