Monospace Font in the Editor

This snippet does not affect tables. If 'your font' is not the same as theme’s font, it might cause inconsistence of different fonts:

before


A simple snippet to set it consistently:

:root {
  --font-monospace: 'Source Han Sans HW SC', 'Source Code Pro', monospace;
}
.markdown-source-view {
  font-family: var(--font-monospace);
}

after

1 Like