This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-20
Channels
- # announcements (16)
- # aws (1)
- # babashka (24)
- # beginners (54)
- # calva (25)
- # cider (4)
- # cljs-dev (2)
- # clojure (16)
- # clojure-dev (39)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-uk (4)
- # clojurescript (66)
- # core-async (16)
- # cursive (13)
- # datomic (15)
- # deps-new (1)
- # duct (22)
- # fulcro (20)
- # jobs-discuss (1)
- # kaocha (3)
- # lsp (11)
- # malli (8)
- # off-topic (38)
- # other-languages (18)
- # polylith (18)
- # portal (15)
- # react (2)
- # reagent (9)
- # reitit (7)
- # releases (10)
- # reveal (1)
- # sci (13)
- # shadow-cljs (3)
- # specter (4)
- # sql (4)
- # xtdb (16)
is there something for transforming markdown to html from bb scripts? Perhaps only https://github.com/retrogradeorbit/bootleg ?
$ npm install showdown
$ nbb -e '(ns foo (:require ["showdown$default" :refer [Converter]]))
(def converter (new Converter))
(def text "# hello, Markdown!")
(.makeHtml converter text)
'
"<h1 id=\"hellomarkdown\">hello, Markdown!</h1>"
(added example: https://github.com/borkdude/nbb/blob/main/examples/showdown/example.cljs)
thank you!
Why would
(ns html2dash
(:require
[babashka.pods :as pods]))
(pods/load-pod "bootleg")
fail with java.io.IOException: error=2, No such file or directory html2dash /my/cwd/html2dash.bb:1:1
?I think it tries to load bootleg
from your system path but you haven't got it installed probably
you are right, thanks! I want 'https://github.com/retrogradeorbit/bootleg "verson"
@holyjak you don't have to install it, you can use it from the pod registry: https://github.com/babashka/pod-registry/blob/3b56427c50dd0fc9e64ba143a990c469c14d037c/examples/bootleg.clj#L5
I know I just always forget the difference between how loading local vs. registry pod looks like 🙂
Hi, I was wondering if there is a way to copy file recursively . I am running on windows.