File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ package tplimpl
1616func (t * templateHandler ) embedShortcodes () {
1717 t .addInternalShortcode ("ref.html" , `{{ if len .Params | eq 2 }}{{ ref .Page (.Get 0) (.Get 1) }}{{ else }}{{ ref .Page (.Get 0) }}{{ end }}` )
1818 t .addInternalShortcode ("relref.html" , `{{ if len .Params | eq 2 }}{{ relref .Page (.Get 0) (.Get 1) }}{{ else }}{{ relref .Page (.Get 0) }}{{ end }}` )
19- t .addInternalShortcode ("highlight.html" , `{{ if len .Params | eq 2 }}{{ highlight .Inner (.Get 0) (.Get 1) }}{{ else }}{{ highlight .Inner (.Get 0) "" }}{{ end }}` )
19+ t .addInternalShortcode ("highlight.html" , `{{ if len .Params | eq 2 }}{{ highlight (trim .Inner "\n\r") (.Get 0) (.Get 1) }}{{ else }}{{ highlight (trim .Inner "\n\r") (.Get 0) "" }}{{ end }}` )
2020 t .addInternalShortcode ("test.html" , `This is a simple Test` )
2121 t .addInternalShortcode ("figure.html" , `<!-- image -->
2222<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
You can’t perform that action at this time.
0 commit comments