showdown icon indicating copy to clipboard operation
showdown copied to clipboard

NPM installation browser support

Open gyenabubakar opened this issue 1 year ago • 2 comments

Is there a reason the NPM package only runs on the server side? Since you're able to build for CDN, it's possible to build it so it can be used in frontend projects using ES module imports, right?

I'm working on the frontend and I'd like to be able to import showdown in a Vue/React/Svelte app without putting a script:src in my HTML

and also get intellisense.

gyenabubakar avatar Nov 02 '23 17:11 gyenabubakar

use import showdown from 'showdown' to import showdown is supported

milkpotatoes avatar Dec 21 '23 04:12 milkpotatoes

use import showdown from 'showdown' to import showdown is supported

@milkpotatoes well actually it doesn't work:

Uncaught SyntaxError: The requested module 'showdown' does not provide an export named 'default'

wykopx avatar Apr 03 '24 18:04 wykopx