Compare commits

...

2 Commits

3 changed files with 6 additions and 5 deletions

View File

@ -113,6 +113,7 @@
@media print { @media print {
:root { :root {
--background-0: #fff; --background-0: #fff;
--text-0: #000;
} }
} }
@ -996,9 +997,9 @@ li.disabled > .page-link:hover {
max-width: 100%; max-width: 100%;
} }
pre { table,
white-space: pre-wrap; aside,
overflow-wrap: anywhere; .code-block {
break-inside: avoid; break-inside: avoid;
} }

View File

@ -11,7 +11,7 @@
{{ if $markdown }} {{ if $markdown }}
{{ $path | readFile | markdownify }} {{ $path | readFile | .Page.RenderString (dict "display" "block") }}
{{ else }} {{ else }}
{{ $path | readFile }} {{ $path | readFile }}
{{ end }} {{ end }}

View File

@ -5,6 +5,6 @@
{{ $class = delimit (slice $class .) " " }} {{ $class = delimit (slice $class .) " " }}
{{ end }} {{ end }}
{{ $htmlTable := .Inner | markdownify }} {{ $htmlTable := .Inner | .Page.RenderString (dict "display" "block") }}
{{ $new := printf `<table class="%s">` $class }} {{ $new := printf `<table class="%s">` $class }}
{{ (replace $htmlTable "<table>" $new) | safeHTML }} {{ (replace $htmlTable "<table>" $new) | safeHTML }}