I want to use a monospace font for editing and a sans-serif for reading – is this possible? I can only see a single “Text font” parameter in the settings and can’t find plugins that can set different fonts.

4 points

You can also do this with any theme if you setup a CSS Snippet:

// This is the one that works for me
.markdown-source-view.mod-cm6 .cm-scroller {
    font-family: monospace;
}

// You may also want to do this one
.markdown-source-view {
    font-family: monospace;
}

Then reading view will use whatever font you’ve configured in the settings.

permalink
report
reply
1 point

Thanks much! This is elegant and easy.

permalink
report
parent
reply
3 points

@berryjam I’ve tried to sign up for Lemmy twice and it’s failed both times. Please tell them they can use different fonts for live preview and for reading mode with the Minimal theme and the Minimal Theme Settings plugin.

permalink
report
reply
1 point

Thanks, I will check out that theme!!

permalink
report
parent
reply
2 points

@berryjam Just FYI, in addition to the Minimal Theme Settings plugin, you’ll also want the Style Settings plugin to get all the customization options.

permalink
report
parent
reply

ObsidianMD

!obsidianmd@lemmy.world

Create post

Unofficial Lemmy community for https://obsidian.md

Community stats

  • 47

    Monthly active users

  • 144

    Posts

  • 655

    Comments