Skip to content

Commit

Permalink
Override default font-family for code blocks to fix dullage#78
Browse files Browse the repository at this point in the history
  • Loading branch information
dullage authored and Gedulis12 committed Aug 7, 2023
1 parent aeb81b6 commit 15bea9b
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 15bea9b

Please sign in to comment.