HUGO
News Docs Themes Community GitHub

transform.CanHighlight

transform.CanHighlight LANGUAGE

Reports whether the given code language is supported by the Chroma highlighter.

transform.Emojify

transform.Emojify INPUT

Runs a string through the Emoji emoticons processor.

transform.Highlight

transform.Highlight CODE LANG [OPTIONS]

Renders code with a syntax highlighter.

transform.HighlightCodeBlock

transform.HighlightCodeBlock CONTEXT [OPTIONS]

Highlights code received in context within a code block render hook.

transform.HTMLEscape

transform.HTMLEscape INPUT

Returns the given string, escaping special characters by replacing them with HTML entities.

transform.HTMLUnescape

transform.HTMLUnescape INPUT

Returns the given string, replacing each HTML entity with its corresponding character.

transform.Markdownify

transform.Markdownify INPUT

Renders Markdown to HTML.

transform.Plainify

transform.Plainify INPUT

Returns a string with all HTML tags removed.

transform.PortableText

transform.PortableText MAP

Converts Portable Text to Markdown.

transform.Remarshal

transform.Remarshal FORMAT INPUT

Marshals a string of serialized data, or a map, into a string of serialized data in the specified format.

transform.ToMath

transform.ToMath INPUT [OPTIONS]

Renders mathematical equations and expressions written in the LaTeX markup language.

transform.Unmarshal

transform.Unmarshal [OPTIONS] INPUT

Parses serialized data and returns a map or an array. Supports CSV, JSON, TOML, YAML, and XML.

transform.XMLEscape

transform.XMLEscape INPUT

Returns the given string, removing disallowed characters then escaping the result to its XML equivalent.