mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Use RenderString instead of markdownify in some places
This commit is contained in:
parent
dd65d55389
commit
f2f9e78559
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user