<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Transform functions on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/</link><description>Recent content in Transform functions on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/functions/transform/index.xml" rel="self" type="application/rss+xml"/><item><title>transform.CanHighlight</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/canhighlight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/canhighlight/</guid><description>{{ transform.CanHighlight &amp;#34;go&amp;#34; }} → true {{ transform.CanHighlight &amp;#34;klingon&amp;#34; }} → false</description></item><item><title>transform.Emojify</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/emojify/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/emojify/</guid><description>emojify runs a passed string through the Emoji emoticons processor.
See the list of emoji shortcodes for available emoticons.
The emojify function can be called in your templates but not directly in your content files by default. For emojis in content files, set enableEmoji to true in your site&amp;rsquo;s configuration. Then you can write emoji shorthand directly into your content files;
I :heart: Hugo! I &amp;#x2764;&amp;#xfe0f; Hugo!</description></item><item><title>transform.Highlight</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/highlight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/highlight/</guid><description>The highlight function uses the Chroma syntax highlighter, supporting over 200 languages with more than 40 available styles.
Arguments INPUT The code to highlight. LANG The language of the code to highlight. Choose from one of the supported languages. Case-insensitive. OPTIONS A map, or comma-separated list, of zero or more options. Set default values in site configuration. Options lineNos Boolean. Default is false.
Display a number at the beginning of each line.</description></item><item><title>transform.HighlightCodeBlock</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/highlightcodeblock/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/highlightcodeblock/</guid><description>This function is only useful within a code block render hook.
Given the context passed into a code block render hook, transform.HighlightCodeBlock returns a HighlightResult object with two methods.
.Wrapped (template.HTML) Returns highlighted code wrapped in &amp;lt;div&amp;gt;, &amp;lt;pre&amp;gt;, and &amp;lt;code&amp;gt; elements. This is identical to the value returned by the transform.Highlight function. .Inner (template.HTML) Returns highlighted code without any wrapping elements, allowing you to create your own wrapper. {{ $result := transform.</description></item><item><title>transform.HTMLEscape</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/htmlescape/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/htmlescape/</guid><description>The transform.HTMLEscape function escapes five special characters by replacing them with HTML entities:
&amp;amp; → &amp;amp;amp; &amp;lt; → &amp;amp;lt; &amp;gt; → &amp;amp;gt; ' → &amp;amp;#39; &amp;quot; → &amp;amp;#34; For example:
{{ htmlEscape &amp;#34;Lilo &amp;amp; Stitch&amp;#34; }} → Lilo &amp;amp;amp; Stitch {{ htmlEscape &amp;#34;7 &amp;gt; 6&amp;#34; }} → 7 &amp;amp;gt; 6</description></item><item><title>transform.HTMLUnescape</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/htmlunescape/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/htmlunescape/</guid><description>The transform.HTMLUnescape function replaces HTML entities with their corresponding characters.
{{ htmlUnescape &amp;#34;Lilo &amp;amp;amp; Stitch&amp;#34; }} → Lilo &amp;amp; Stitch {{ htmlUnescape &amp;#34;7 &amp;amp;gt; 6&amp;#34; }} → 7 &amp;gt; 6 In most contexts Go&amp;rsquo;s html/template package will escape special characters. To bypass this behavior, pass the unescaped string through the safeHTML function.
{{ htmlUnescape &amp;#34;Lilo &amp;amp;amp; Stitch&amp;#34; | safeHTML }}</description></item><item><title>transform.Markdownify</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/markdownify/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/markdownify/</guid><description>&amp;lt;h2&amp;gt;{{ .Title | markdownify }}&amp;lt;/h2&amp;gt; If the resulting HTML is a single paragraph, Hugo removes the wrapping p tags to produce inline HTML as required per the example above.
To keep the wrapping p tags for a single paragraph, use the RenderString method on the Page object, setting the display option to block.
Although the markdownify function honors markdown render hooks when rendering markdown to HTML, use the RenderString method instead of markdownify if a render hook accesses .</description></item><item><title>transform.Plainify</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/plainify/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/plainify/</guid><description>{{ &amp;#34;&amp;lt;b&amp;gt;BatMan&amp;lt;/b&amp;gt;&amp;#34; | plainify }} → BatMan</description></item><item><title>transform.Remarshal</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/remarshal/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/remarshal/</guid><description>The format must be one of json, toml, yaml, or xml. If the input is a string of serialized data, it must be valid JSON, TOML, YAML, or XML.
This function is primarily a helper for Hugo&amp;rsquo;s documentation, used to convert configuration and front matter examples to JSON, TOML, and YAML.
This is not a general purpose converter, and may change without notice if required for Hugo&amp;rsquo;s documentation site.
Example 1 Convert a string of TOML to JSON.</description></item><item><title>transform.Unmarshal</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/unmarshal/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/unmarshal/</guid><description>The input can be a string or a resource.
Unmarshal a string {{ $string := ` title: Les Misérables author: Victor Hugo `}} {{ $book := unmarshal $string }} {{ $book.title }} → Les Misérables {{ $book.author }} → Victor Hugo Unmarshal a resource Use the transform.Unmarshal function with global, page, and remote resources.
Global resource A global resource is a file within the assets directory, or within any directory mounted to the assets directory.</description></item><item><title>transform.XMLEscape</title><link>https://v0-122-0--gohugoio.netlify.app/functions/transform/xmlescape/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/functions/transform/xmlescape/</guid><description>New in v0.121.0 The transform.XMLEscape function removes disallowed characters as defined in the XML specification, then escapes the result by replacing the following characters with HTML entities:
&amp;quot; → &amp;amp;#34; ' → &amp;amp;#39; &amp;amp; → &amp;amp;amp; &amp;lt; → &amp;amp;lt; &amp;gt; → &amp;amp;gt; \t → &amp;amp;#x9; \n → &amp;amp;#xA; \r → &amp;amp;#xD; For example:
{{ transform.XMLEscape &amp;#34;&amp;lt;p&amp;gt;abc&amp;lt;/p&amp;gt;&amp;#34; }} → &amp;amp;lt;p&amp;amp;gt;abc&amp;amp;lt;/p&amp;amp;gt; When using transform.XMLEscape in a template rendered by Go&amp;rsquo;s html/template package, declare the string to be safe HTML to avoid double escaping.</description></item></channel></rss>