Use RenderString instead of markdownify in some places

This commit is contained in:
BBaoVanC 2023-01-27 16:14:23 -06:00
parent dd65d55389
commit f2f9e78559
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 2 additions and 2 deletions

View File

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

View File

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