Skip to content
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 4 replies

Comment options

You must be logged in to vote
4 replies
@TRaSH-
Comment options

@rwoldu
Comment options

@TRaSH-
Comment options

@rwoldu
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
3 participants