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

Uncaught TypeError: marked.setOptions is not a function #828

Open ajboni opened 2 years ago

ajboni commented 2 years ago

I think it might be related to #825

staszek998 commented 2 years ago

You're right, @ajboni - it's related. That's the exact same TypeError that's caused by the marked package in version 4.x. When the @sparksuite will implement my PR into their codebase, the TypeError you mentioned will be gone.

ajboni commented 2 years ago

Thanks for confirming, @staszek998 . For now, a workaround I'm using, is to move to yarn and use resolutions on package.json. Not really ideal, but it works...

  "resolutions": {
    "marked": "3.0.8"
  }
staszek998 commented 2 years ago

I'm using the same workaround and it works for me, too 🙂