fix: the readme and make the code block scrollable

This commit is contained in:
Junyi Hou 2024-11-17 19:44:18 +08:00
parent 6b98e015c6
commit d18fb480d3
3 changed files with 7 additions and 3 deletions

View File

@ -53,7 +53,7 @@ name = "Junyi"
unsafe = true # true | false; Enable unsafe mode to have a better experience unsafe = true # true | false; Enable unsafe mode to have a better experience
[markup.highlight] [markup.highlight]
style = 'base16-snazzy' # Highlight.js style style = 'base16-snazzy' # Chroma style, find more at here: https://swapoff.org/chroma/playground/
``` ```

View File

@ -249,6 +249,10 @@ div.highlight {
margin-bottom: 14px; margin-bottom: 14px;
} }
div.highlight div {
overflow: scroll;
}
div.highlight pre { div.highlight pre {
border: none; border: none;
display: grid; display: grid;

View File

@ -156,13 +156,13 @@ author = "authors"
defaultMarkdownHandler = 'goldmark' defaultMarkdownHandler = 'goldmark'
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true # Enable unsafe mode to have a better experience
[markup.highlight] [markup.highlight]
anchorLineNos = false anchorLineNos = false
codeFences = true # tested with true and false. Both work. codeFences = true # tested with true and false. Both work.
noClasses = true # If you run with markup.highlight.noClasses=false in your site configuration, you need a style sheet. noClasses = true # If you run with markup.highlight.noClasses=false in your site configuration, you need a style sheet.
style = 'base16-snazzy' style = 'catppuccin-frappe' # Find more style at here: https://swapoff.org/chroma/playground/
tabWidth = 4 tabWidth = 4
[params.UmamiAnalytics] [params.UmamiAnalytics]