This is a syntax highlighter plugin for Kramdown that leverages Tree-sitter's native syntax highlighter to highlight code blocks (and spans) when rendering HTML. Tree-sitter is a modern, general-purpose parsing library that outclasses many existing tools at the task of syntax highlighting. This plugin adapts Tree-sitter's native highlighter for Kramdown, so that Tree-sitter's superior highlighting capabilities can be easily leveraged in the context of rendering Markdown.
Required Ruby Version
>= 2.7
Authors
Andrew T. Biehl
Versions
-
0.6.0
-
source
- 0.6.0 source May 31, 2024 (24.5 KB)
-
-
0.5.0
-
source
- 0.5.0 source May 18, 2023 (21 KB)
-
-
0.4.0
-
source
- 0.4.0 source April 15, 2023 (20.5 KB)
-
-
0.3.0
-
source
- 0.3.0 source January 11, 2023 (20 KB)
-
-
0.2.0
-
source
- 0.2.0 source December 08, 2022 (19.5 KB)
-
Requirements
This plugin is essentially an adapter for the Tree-sitter highlight library and hence requires a compatible Rust installation to function. It is officially compatible with the following environments: - Rust: 1.66, 1.67, 1.68, 1.69 - Platforms: MacOS, Linux