Merge pull request #1522 from ae-utbm/md-smallfix

fix: add back `.markdown` on EasyMde preview editor
This commit is contained in:
thomas girod authored and GitHub committed 2026-10-20 18:38:19 +02:00
commit f2469873fd
2 files changed
+10

No files matched your search

@@ -60,6 +60,7 @@ const loadEasyMde = (textarea: HTMLTextAreaElement) => {
});
easymde.codemirror.replaceSelection("\n");
},
previewClass: ["editor-preview", "markdown"], // default class + our own markdown class
previewRender: (plainText) => markdown(plainText),
forceSync: true, // Avoid validation error on generic create view
imageTexts: {
+9
View File
@@ -33,6 +33,15 @@
padding: 1px 2px;
}
/**
* Some restyling rules for the cases where our own md css
* conflicts with the easymde editor preview css
*/
&.editor-preview {
pre {
background: unset;
}
}
pre code {
// code that is not inlined
margin: 15px;