bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.62k stars 74 forks source link

Allow woofmark to work inside a shadow dom element #78

Open cam-narzt opened 2 years ago

cam-narzt commented 2 years ago

The first commit adds code to allow woofmark to work in a shadow dom element. The second commit was needed to make woofmark build, but I'm not sure if it's right. If I try and use the built module, I get import errors (default not exported from woofmark, etc).

Hopefully this can be made to work.