This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-08
Channels
- # announcements (42)
- # aws (2)
- # babashka (69)
- # beginners (38)
- # calva (18)
- # cider (39)
- # circleci (1)
- # clj-commons (10)
- # cljs-dev (2)
- # clojure (36)
- # clojure-australia (14)
- # clojure-europe (25)
- # clojure-gamedev (40)
- # clojure-losangeles (4)
- # clojure-nl (5)
- # clojure-sweden (1)
- # clojure-uk (5)
- # clojurescript (133)
- # core-logic (24)
- # cursive (7)
- # datalevin (4)
- # datascript (3)
- # figwheel-main (1)
- # fulcro (45)
- # honeysql (1)
- # integrant (43)
- # introduce-yourself (1)
- # jobs (4)
- # leiningen (3)
- # lsp (32)
- # nextjournal (9)
- # pathom (18)
- # polylith (21)
- # portal (65)
- # re-frame (6)
- # releases (1)
- # remote-jobs (1)
- # reveal (12)
- # rewrite-clj (1)
- # sci (84)
- # tools-deps (22)
Morning :)
Morning !
Goat moaning folks. Wrote a blog post showing (off) how to write a Clojure highlighter from scratch. https://blog.michielborkent.nl/writing-clojure-highlighter.html
Do you put a space between the "fence" and the language name, as it seems from your code?
clojureI do not>
`clojure` But then it is highlighter for your blog 🙂> After that we escape some markdown-specific characters, so they will be preserved after markdown compilation. I guess that is necessary b/c your md parser is interpreting text inside the code block? I think that more modern / better (?) parser don't do that. I think I did not have that problem with flexmark, before I migrated to asciidoctor.
Well, the code block has been converted to HTML before it goes through the markdown transformer. I don't know what the behavior of is modern markdown parsers when you do:
<pre><code>[foo](bar)</code></pre>
The correct behavior according to the "standard" is NOT to process markdown inside html block elements. But some parsers still do 😞 Very interesting post. Good to learn about some of the powers of kondo and rewrite! 🙂 Thanks for sharing!
yeah it might be better to just escape all markdown-related things with html entities, just to be on the safe side
Good morning!
Good morning