fix: replace markdownify with renderString to use render hooks (#65)

uci-hugo-doc
Robert Kaussow 2021-02-17 09:22:26 +01:00 committed by GitHub
parent f97587c384
commit d9daf73afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<div class="gdoc-columns flex flex-wrap">
{{ range split .Inner "<--->" }}
<div class="gdoc-columns__content gdoc-markdown--nested flex-even">
{{ . | markdownify }}
{{ . | $.Page.RenderString }}
</div>
{{ end }}
</div>

View File

@ -6,6 +6,6 @@
</label>
<input id="{{ $id }}-{{ .Ordinal }}" type="checkbox" class="gdoc-expand__control hidden" />
<div class="gdoc-markdown--nested gdoc-expand__content">
{{ .Inner | markdownify }}
{{ .Inner | $.Page.RenderString }}
</div>
</div>

View File

@ -1,3 +1,3 @@
<blockquote class="gdoc-hint {{ .Get 0 }}">
{{ .Inner | markdownify }}
{{ .Inner | $.Page.RenderString }}
</blockquote>

View File

@ -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 -}}

View File

@ -10,7 +10,7 @@
{{ $tab.Name }}
</label>
<div class="gdoc-markdown--nested gdoc-tabs__content">
{{ .Content | markdownify }}
{{ .Content | $.Page.RenderString }}
</div>
{{ end }}
</div>