"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/content/en/functions/RenderString.md" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

RenderString.md  (hugo-0.80.0):RenderString.md  (hugo-0.81.0)
skipping to change at line 23 skipping to change at line 23
{{< new-in "0.62.0" >}} {{< new-in "0.62.0" >}}
`.RenderString` is a method on `Page` that renders some markup to HTML using the content renderer defined for that page (if not set in the options). `.RenderString` is a method on `Page` that renders some markup to HTML using the content renderer defined for that page (if not set in the options).
*Note* that this method does not parse and render shortcodes. *Note* that this method does not parse and render shortcodes.
The method takes an optional map argument with these options: The method takes an optional map argument with these options:
display ("inline") display ("inline")
: `inline` or `block`. If `inline` (default), surrounding ยด<p></p>` on short sni ppets will be trimmed. : `inline` or `block`. If `inline` (default), surrounding `<p></p>` on short sni ppets will be trimmed.
markup (defaults to the Page's markup) markup (defaults to the Page's markup)
: See identifiers in [List of content formats](/content-management/formats/#list -of-content-formats). : See identifiers in [List of content formats](/content-management/formats/#list -of-content-formats).
Some examples: Some examples:
```go-html-template ```go-html-template
{{ $optBlock := dict "display" "block" }} {{ $optBlock := dict "display" "block" }}
{{ $optOrg := dict "markup" "org" }} {{ $optOrg := dict "markup" "org" }}
{{ "**Bold Markdown**" | $p.RenderString }} {{ "**Bold Markdown**" | $p.RenderString }}
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)