fix: replace markdownify with renderString to use render hooks (#65)
parent
f97587c384
commit
d9daf73afb
|
@ -1,7 +1,7 @@
|
||||||
<div class="gdoc-columns flex flex-wrap">
|
<div class="gdoc-columns flex flex-wrap">
|
||||||
{{ range split .Inner "<--->" }}
|
{{ range split .Inner "<--->" }}
|
||||||
<div class="gdoc-columns__content gdoc-markdown--nested flex-even">
|
<div class="gdoc-columns__content gdoc-markdown--nested flex-even">
|
||||||
{{ . | markdownify }}
|
{{ . | $.Page.RenderString }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -6,6 +6,6 @@
|
||||||
</label>
|
</label>
|
||||||
<input id="{{ $id }}-{{ .Ordinal }}" type="checkbox" class="gdoc-expand__control hidden" />
|
<input id="{{ $id }}-{{ .Ordinal }}" type="checkbox" class="gdoc-expand__control hidden" />
|
||||||
<div class="gdoc-markdown--nested gdoc-expand__content">
|
<div class="gdoc-markdown--nested gdoc-expand__content">
|
||||||
{{ .Inner | markdownify }}
|
{{ .Inner | $.Page.RenderString }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<blockquote class="gdoc-hint {{ .Get 0 }}">
|
<blockquote class="gdoc-hint {{ .Get 0 }}">
|
||||||
{{ .Inner | markdownify }}
|
{{ .Inner | $.Page.RenderString }}
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{{$file := .Get "file"}}
|
{{$file := .Get "file"}}
|
||||||
<div class="gdoc-include">
|
<div class="gdoc-include">
|
||||||
{{- if eq (.Get "markdown") "true" -}}
|
{{- if eq (.Get "markdown") "true" -}}
|
||||||
{{- $file | readFile | markdownify -}}
|
{{- $file | readFile | $.Page.RenderString -}}
|
||||||
{{- else if (.Get "language") -}}
|
{{- else if (.Get "language") -}}
|
||||||
{{- highlight ($file | readFile) (.Get "language") (default "linenos=table" (.Get "options")) -}}
|
{{- highlight ($file | readFile) (.Get "language") (default "linenos=table" (.Get "options")) -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{{ $tab.Name }}
|
{{ $tab.Name }}
|
||||||
</label>
|
</label>
|
||||||
<div class="gdoc-markdown--nested gdoc-tabs__content">
|
<div class="gdoc-markdown--nested gdoc-tabs__content">
|
||||||
{{ .Content | markdownify }}
|
{{ .Content | $.Page.RenderString }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue