Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not format code elements inside pre

thecodrr4daea1b25d20
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index 6233b5fda..f83b83bdd 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -143,11 +143,11 @@
background: var(--textSelection);
}
-.mce-content-body code[data-mce-selected="inline-boundary"] {
+.mce-content-body code[data-mce-selected="inline-boundary"]:not(pre code) {
background-color: var(--bgSecondary);
}
-.mce-content-body code {
+.mce-content-body code:not(pre code) {
background-color: var(--bgSecondary);
border: 1px solid var(--border);
border-radius: 5px;