sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

con't preview #808

Closed l5769389 closed 3 years ago

l5769389 commented 3 years ago

image

preview is not effect,this is my code in vue3.0

` const simplemde = new SimpleMDE({ autofocus: true, autosave: { enabled: true, uniqueId: "editor01", delay: 1000, }, blockStyles: { bold: "_", italic: "" }, element:document.getElementById("editor"), forceSync: true, hideIcons: ["guide", "heading"], indentWithTabs: false, initialValue: "SimpleMDE Dome", insertTexts: { horizontalRule: ["", "\n\n-----\n\n"], image: ["![](http://", ")"], link: ["", ""], table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"], }, lineWrapping: false, parsingConfig: { allowAtxHeaderWithoutSpace: true, strikethrough: false, underscoresBreakWords: true, }, placeholder: "placeholder", promptURLs: true, renderingConfig: { singleLineBreaks: false, codeSyntaxHighlighting: true, }, shortcuts: { drawTable: "Cmd-Alt-T" }, showIcons: ["code", "table"], spellChecker: false, status: ["autosave", "lines", "words", "cursor", { className: "keystrokes", defaultValue: function(el) { this.keystrokes = 0; el.innerHTML = "0 Keystrokes"; }, onUpdate: function(el) { el.innerHTML = ++this.keystrokes + " Keystrokes"; } }], styleSelectedText: false, tabSize: 4,

  });`
l5769389 commented 3 years ago

I solved it by:

RobertBrunhage commented 3 years ago

Hey @l5769389 could you elaborate on what fixed it exactly? This is really hard to read when you haven't used the formatting