Skip to content

Commit

Permalink
fix: replace markdownify with renderString to use render hooks (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Feb 17, 2021
1 parent f97587c commit d9daf73
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion layouts/shortcodes/columns.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion layouts/shortcodes/expand.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion layouts/shortcodes/hint.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<blockquote class="gdoc-hint {{ .Get 0 }}">
{{ .Inner | markdownify }}
{{ .Inner | $.Page.RenderString }}
</blockquote>
2 changes: 1 addition & 1 deletion layouts/shortcodes/include.html
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ $tab.Name }}
</label>
<div class="gdoc-markdown--nested gdoc-tabs__content">
{{ .Content | markdownify }}
{{ .Content | $.Page.RenderString }}
</div>
{{ end }}
</div>

0 comments on commit d9daf73

Please sign in to comment.