Merge pull request #171 from rpoisel/fix-code-blocks-line-numbers

fix: line numbers issue in code blocks
This commit is contained in:
Somrat 2025-02-04 11:02:04 +06:00 committed by GitHub
commit 1b5466b050
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -192,6 +192,16 @@ s = "Python syntax highlighting"
print s
```
```c { linenos=true }
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
return 0;
}
```
```mermaid
flowchart TD
A[Start] --> B{Is it?}

View File

@ -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