mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2026-10-31 22:13:33 -05:00
Use RenderString instead of markdownify in some places
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -11,7 +11,7 @@
|
||||
|
||||
|
||||
{{ if $markdown }}
|
||||
{{ $path | readFile | markdownify }}
|
||||
{{ $path | readFile | .Page.RenderString (dict "display" "block") }}
|
||||
{{ else }}
|
||||
{{ $path | readFile }}
|
||||
{{ end }}
|
||||
@@ -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 }}
|
||||
Reference in new issue
Block a user