minimal icon indicating copy to clipboard operation
minimal copied to clipboard

Configurable font-family for code blocks

Open powersj opened this issue 6 years ago • 2 comments

It would be really nice to be able to have a configurable option for the code font in config.toml:

font = "Montserrat"
font_code = "Ubuntu Mono"

It appears that inline code (e.g. "Run whoami at the prompt") uses code blocks around whoami. Larger blocks of code use code blocks as well, but the highlight.js class needed to be used as well. I had success with the following in my own custom.css:

@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono');

body code, .hljs {
    font-family: 'Ubuntu Mono', monospace;
}

Is there a better way to do this? Thoughts?

powersj avatar Jun 29 '18 23:06 powersj