Skip to content

Build your personal knowledge base with Trilium Notes

fix(help): ligatures in code causing confusion (closes #6224)

Elian Doran5390bfdcabd2
diff --git a/apps/client/src/widgets/type_widgets/doc.ts b/apps/client/src/widgets/type_widgets/doc.ts
index fcab8ce4bf..809c014e06 100644
--- a/apps/client/src/widgets/type_widgets/doc.ts
+++ b/apps/client/src/widgets/type_widgets/doc.ts
@@ -16,6 +16,10 @@ const TPL = /*html*/`<div class="note-detail-doc note-detail-printable">
border-radius: 5px;
}
+ .note-detail-doc-content code {
+ font-variant: none;
+ }
+
.note-detail-doc-content pre:not(.hljs) {
background-color: var(--accented-background-color);
border: 1px solid var(--main-border-color);