Using regex to allow rendering notes with an indent, for example:
{{< note >}}
If the last element of the path is a substring of the
last element in request path, it is not a match (for example:
`/foo/bar` matches`/foo/bar/baz`, but does not match `/foo/barbaz`).
{{< /note >}}
After changin to hugo 0.70 trim seems to be not working.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<blockquote class="note">
|
||||
<div><strong>{{ T "note" }}</strong> {{ trim .Inner " \n" | markdownify }}</div>
|
||||
<div><strong>{{ T "note" }}</strong> {{ replaceRE "\\s+|\n" " " .Inner | markdownify }}</div>
|
||||
</blockquote>
|
||||
Reference in New Issue
Block a user