Skip to content

Commit

Permalink
Override default font-family for code blocks to fix #78
Browse files Browse the repository at this point in the history
  • Loading branch information
dullage committed Jun 1, 2023
1 parent ea67514 commit 689e0e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flatnotes/src/components/NoteViewerEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@
.toastui-editor-defaultUI .ProseMirror {
@include note-padding;
}
// Override the default font-family for code blocks as some of the fallbacks are not monospace
.toastui-editor-contents code,
.toastui-editor-contents pre,
.toastui-editor-md-code,
.toastui-editor-md-code-block {
font-family: Consolas, "Lucida Console", Monaco, "Andale Mono", monospace;
}
</style>

<script>
Expand Down

0 comments on commit 689e0e3

Please sign in to comment.