From 31cc69631edbf696666a3d459457532cba9aad7c Mon Sep 17 00:00:00 2001 From: allen0099 Date: Fri, 25 Sep 2026 13:09:46 +0000 Subject: [PATCH] docs: render emoji shortcodes on the documentation site The Cache-Control directive tables use :white_check_mark: and :x:, which GitHub renders but the site printed as literal text because pymdownx.emoji was not enabled. Enable it with the Unicode output, so no images are loaded from a CDN. --- zensical.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zensical.toml b/zensical.toml index f61f15f..62397b2 100644 --- a/zensical.toml +++ b/zensical.toml @@ -87,6 +87,11 @@ md_in_html = {} tables = {} toc.permalink = true pymdownx.details = {} +# Turn `:white_check_mark:`-style shortcodes (rendered natively on GitHub) +# into the Unicode characters on the site as well, without loading images +# from a CDN. +pymdownx.emoji.emoji_index = "zensical.extensions.emoji.twemoji" +pymdownx.emoji.emoji_generator = "pymdownx.emoji.to_alt" pymdownx.highlight.anchor_linenums = true pymdownx.highlight.line_spans = "__span" pymdownx.highlight.pygments_lang_class = true