From bf5ff28fe4a6e66542a8cdf3bb5d332ef4a73063 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 15 Apr 2024 16:34:40 -0500 Subject: [PATCH] refactor: disable treesitter syntax highlights --- src/markdown/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/markdown/mod.rs b/src/markdown/mod.rs index 1fbd676..2857572 100644 --- a/src/markdown/mod.rs +++ b/src/markdown/mod.rs @@ -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 })