Override default font-family for code blocks to fix #78
authorAdam Dullage <redacted>
Thu, 1 Jun 2023 08:33:02 +0000 (09:33 +0100)
committerAdam Dullage <redacted>
Thu, 1 Jun 2023 08:33:02 +0000 (09:33 +0100)
flatnotes/src/components/NoteViewerEditor.vue

index be72d0605150cf0c235f5e473fd4d38868d4e593..344f03fcfd4110ac1401d72657e17a368fd15890 100644 (file)
 .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>
git clone https://git.99rst.org/PROJECT