doc-gen4 icon indicating copy to clipboard operation
doc-gen4 copied to clipboard

Support syntax highlighting for Lean in Markdown code blocks

Open hansonchar opened this issue 6 months ago • 2 comments

When generating documentation with markdown in doc-gen4, code blocks tagged as lean or lean4 (e.g., ```lean or ```lean4) currently do not support syntax highlighting. Are there any plans to add support for Lean syntax highlighting in markdown code blocks?

hansonchar avatar Jun 06 '25 23:06 hansonchar

Currently no fenced code-block highlighting is supported, I think.

eric-wieser avatar Jun 07 '25 00:06 eric-wieser

I've checked the md4c source code, at least it will put the XXX in ```XXX to HTML. So maybe we should try to load a javascript for syntax highlighting?

acmepjz avatar Jun 08 '25 07:06 acmepjz