fix: replace markdownify with renderString to use render hooks (#65)
This commit is contained in:
parent
f97587c384
commit
d9daf73afb
5 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
{{$file := .Get "file"}}
|
||||
<div class="gdoc-include">
|
||||
{{- if eq (.Get "markdown") "true" -}}
|
||||
{{- $file | readFile | markdownify -}}
|
||||
{{- $file | readFile | $.Page.RenderString -}}
|
||||
{{- else if (.Get "language") -}}
|
||||
{{- highlight ($file | readFile) (.Get "language") (default "linenos=table" (.Get "options")) -}}
|
||||
{{- else -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue