From 19b891fd689b43d40d66ae34633e3d99d7a2ecd9 Mon Sep 17 00:00:00 2001 From: Rainer Poisel Date: Thu, 30 Jan 2025 21:25:29 +0100 Subject: [PATCH] fix: line numbers issue in code blocks --- exampleSite/content/english/pages/elements.md | 10 ++++++++++ exampleSite/hugo.toml | 1 + 2 files changed, 11 insertions(+) diff --git a/exampleSite/content/english/pages/elements.md b/exampleSite/content/english/pages/elements.md index 0734549..a7e0486 100755 --- a/exampleSite/content/english/pages/elements.md +++ b/exampleSite/content/english/pages/elements.md @@ -192,6 +192,16 @@ s = "Python syntax highlighting" print s ``` +```c { linenos=true } +#include + +int main(void) +{ + printf("hello, world\n"); + return 0; +} +``` + ```mermaid flowchart TD A[Start] --> B{Is it?} diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 055fc75..9ccaa80 100755 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -103,6 +103,7 @@ unsafe = true [markup.highlight] style = 'monokai' # see https://xyproto.github.io/splash/docs/all.html +lineNumbersInTable = false [markup.tableOfContents] startLevel = 2