From 10d007a98c63043b1e849994eca80098a2c2611b Mon Sep 17 00:00:00 2001 From: Jacob Austin Date: Wed, 12 Feb 2025 16:47:57 -0500 Subject: [PATCH] Allows for standard Jekyll code highlighting with distill template (#3002) As described in https://github.com/alshedivat/al-folio/issues/300, standard Markdown code highlighting doesn't work in the Distill template because it is clobbered by the Distill "Prism" syntax highlighting. This PR will allow d-code tags (distill-specific code tags) to function with the Distill syntax highlighter, but will default `highlight` and Markdown code blocks to use the Jekyll/Rouge highlighter. This PR also removes overrides.js, which is currently broken because jquery isn't loaded. --- _layouts/distill.liquid | 1 - _posts/2018-12-22-distill.md | 10 ++++++++-- assets/js/distillpub/overrides.js | 28 ---------------------------- assets/js/distillpub/template.v2.js | 2 +- 4 files changed, 9 insertions(+), 32 deletions(-) delete mode 100644 assets/js/distillpub/overrides.js diff --git a/_layouts/distill.liquid b/_layouts/distill.liquid index 63a0b46..163ca3d 100644 --- a/_layouts/distill.liquid +++ b/_layouts/distill.liquid @@ -6,7 +6,6 @@ - {% if page._styles %}