You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax highlighting works great for Clojure, I read in the book that it should work for other languages too. (but probably ::clerk/opts should be ::clerk/render-opts)
Unfortunately, when I tried to use this feature, I could only get it to work for Forth, which is very strange. Maybe I'm doing something wrong?
Any help would be appreciated
Clerk version: io.github.nextjournal/clerk {:mvn/version "0.17.1102"}
Clojure version org.clojure/clojure {:mvn/version "1.11.1"}
I'm using simple md notebook with code blocks
defhello():
print("world");
And I see in the network tab that relevant parsers are loading.
Interestingly syntactic tree for python, c++, js, etc looks very simple compared to clojure, so i guess smth is wrong here.
The text was updated successfully, but these errors were encountered:
as observed by @romanatexn options should be passed as ::clerk/render-opts, I thought we normalise from the older version but we no longer do that.
even with that in place, our codemirror highlighting has been messed up with some dependency update. I used the markdown fences notebook to bisect where language options are passed down correctly, last good is dc51320f and first bad is 93e21941 (93e2194).
That said, we're importing code mirror language-data dynamically and that's already the latest version available. So I'll keep checking other options.
Syntax highlighting works great for Clojure, I read in the book that it should work for other languages too. (but probably ::clerk/opts should be ::clerk/render-opts)
Unfortunately, when I tried to use this feature, I could only get it to work for Forth, which is very strange. Maybe I'm doing something wrong?
Any help would be appreciated
Clerk version: io.github.nextjournal/clerk {:mvn/version "0.17.1102"}
Clojure version org.clojure/clojure {:mvn/version "1.11.1"}
I'm using simple md notebook with code blocks
And I see in the network tab that relevant parsers are loading.
Interestingly syntactic tree for python, c++, js, etc looks very simple compared to clojure, so i guess smth is wrong here.
The text was updated successfully, but these errors were encountered: