refactor: disable treesitter syntax highlights

This commit is contained in:
Price Hiller 2024-04-15 16:34:40 -05:00
parent 6b3f7676b5
commit bf5ff28fe4
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -85,8 +85,9 @@ impl MDComrakSettings<'_> {
options.extension.footnotes = true;
let mut plugins = ComrakPlugins::default();
// plugins.render.codefence_syntax_highlighter = Some(&*SYNTECT_ADAPTER);
plugins.render.codefence_syntax_highlighter = Some(&*TESTERTHANG);
plugins.render.codefence_syntax_highlighter = Some(&*SYNTECT_ADAPTER);
// NOTE: Disabling treesitter syntax hls until I can figure out Nix integration
// plugins.render.codefence_syntax_highlighter = Some(&*TESTERTHANG);
plugins.render.heading_adapter = Some(&HeaderLinkAdapter);
Ok(MDComrakSettings { options, plugins })