mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix center-quote shortcode when config unsafe = false
when config unsafe = false, center-quote without markdown works but shortcode with markdown doesn't work.
the following doesn't work when unsafe = false:
```
{{% center-quote %}}
**hello** *world*
this is a center-quote shortcode example.
{{% /center-quote %}}
```
with this fix, the following works with markdown when unsafe = false:
```
{{< center-quote >}}
**hello** *world*
this is a center-quote shortcode example.
{{< /center-quote >}}
```
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<blockquote class="blockquote-center">
|
||||
{{ .Inner }}
|
||||
{{ .Inner | .Page.RenderString }}
|
||||
</blockquote>
|
||||
Reference in New Issue
Block a user