300 people in this channel, 🎉
don't tell @jmglov
@jmglov ^
nothing to see here @jmglov
[SOLVED] I'm trying nbb for the first time and getting this error when trying to use markdown-clj. I created https://github.com/marceloschreiber/nbb-markdown that reproduces the issue. Am I missing something?
I’ll have a look at the repro but for nbb it might be better to use commonmark from npm implemented in JS
Or any other popular JS markdown lib
It seems that in CLJS only the md-to-html-string*` var exists: (prn (md/md-to-html-string* "#Hello")) works.
See https://github.com/yogthos/markdown-clj/blob/288a19b983b06fa1b12a99f0773956e420f998e4/src/cljs/markdown/core.cljs#L42
still I think using an npm markdown library is better for nbb since it's more performant to use
thanks @borkdude! Good to know about the performance difference. Not something that I care for now. Is it common for libraries to have different var names between clj and cljs? I expected them to be the same and I'm curious if there is a reason for them not to be.
It's not that common, it may just be an oversight in that lib
performance but also startup time: processing cljs code at startup vs reading a JS lib (which may or not be faster)
I saw that the README has two sections: Usage Clojure and Usage ClojureScript. But I totally skipped reading the heading name 🙂
Are you using npm install markdown-clj to install it? If so you may need to add it to your classpath manually.
Oh never mind, I just looked at your repro, sorry.