mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-23 10:49:31 +00:00
Merge pull request #1522 from ae-utbm/md-smallfix
fix: add back `.markdown` on EasyMde preview editor
This commit is contained in:
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: {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user