Pi66

merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi

← back to log

feat: enable line numbers in syntax highlighting config

author: pi66
date: 2026-07-18 22:25
hash: a815400366bf48ed01afc6d654241295c551e2aa

Diffstat:

M

src/build.py
2 ++++++++++++++++++++++++++++++
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/src/build.py b/src/build.py
index c79f544..9739efe 100644
--- a/src/build.py
+++ b/src/build.py
@@ -120,6 +120,8 @@ def process_highlighting(config):
     highlight = hook_call("on_highlight_config", highlight) or highlight
     return {
         "use_pygments": True,
+        "linenums": True,
+        "linenums_style": "table",
         "noclasses": highlight != "noclasses",
         **(
             {}