can't use as node_modules
Closed this issue · 0 comments
okmttdhr commented
I got error like below if I use medium-editor-markdown
via npm.
Uncaught ReferenceError: toMarkdown is not defined
My code is something like this.
import MediumEditor from 'medium-editor';
import MeMarkdown from 'medium-editor-markdown';
const editor = new MediumEditor(editableEl, {
extensions: {
markdown: new MeMarkdown((md) => {
markDownEl.textContent = md
})
}
});