Fix #11 - better syntax highlighting

This requires the following to be added to config.toml:

[markup]
  [markup.highlight]
    noClasses = false
    lineNos = true
This commit is contained in:
2021-10-15 19:15:36 -05:00
parent 34605bb8e2
commit 92352a0c19
3 changed files with 95 additions and 3 deletions

View File

@ -129,18 +129,25 @@ hr {
/* Code blocks */
pre {
.highlight pre {
width: 100%;
overflow: auto;
}
:not(pre) > code, pre {
.highlight > pre {
padding: 12px 8px;
}
:not(pre) > code {
background-color: #282828;
padding: 2px 4px;
border-radius: 5px;
overflow-wrap: break-word;
}
code {
border-radius: 5px;
}
/* Icons */