This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-28
Channels
- # asami (5)
- # babashka (44)
- # beginners (22)
- # biff (7)
- # clerk (86)
- # clj-kondo (5)
- # clojure (33)
- # clojure-europe (8)
- # clr (6)
- # community-development (2)
- # fulcro (20)
- # graalvm (5)
- # graphql (1)
- # hugsql (3)
- # integrant (5)
- # java (11)
- # joyride (2)
- # leiningen (4)
- # malli (12)
- # nbb (15)
- # off-topic (28)
- # pathom (23)
- # reitit (8)
- # releases (1)
- # sci (6)
- # shadow-cljs (39)
- # tools-deps (15)
- # tree-sitter (1)
[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?
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.
I’ll have a look at the repro but for nbb it might be better to use commonmark from npm implemented in JS
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 @U04V15CAJ! 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.
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 🙂
don't tell @jmglov
nothing to see here @jmglov