Skip to content

Polyglot syntax highlighting not working? #738

Open
@okmaybenot

Description

@okmaybenot

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

def hello():
  print("world");

And I see in the network tab that relevant parsers are loading.
Screenshot 2024-12-10 at 23 47 02

Interestingly syntactic tree for python, c++, js, etc looks very simple compared to clojure, so i guess smth is wrong here.

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions