HUGO
Menu
GitHub 89791 stars Mastodon

transform.CanHighlight

transform.CanHighlight LANGUAGE

Reports whether the given language is supported for syntax highlighting.

transform.Emojify

transform.Emojify INPUT

Returns the given string with emoji shortcodes replaced by their corresponding emoji characters.

transform.Highlight

transform.Highlight CODE [LANG] [OPTIONS]

Returns the given code rendered with a syntax highlighter.

transform.HighlightCodeBlock

transform.HighlightCodeBlock CONTEXT [OPTIONS]

Returns highlighted 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.HTMLToMarkdown

transform.HTMLToMarkdown INPUT

Returns the given HTML converted to Markdown.

transform.HTMLUnescape

transform.HTMLUnescape INPUT

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

transform.Markdownify

transform.Markdownify INPUT

Returns the given Markdown rendered to HTML.

transform.Plainify

transform.Plainify INPUT

Returns a string with all HTML tags removed.

transform.PortableText

transform.PortableText MAP

Returns the given Portable Text converted to Markdown.

transform.Remarshal

transform.Remarshal FORMAT INPUT

Returns a string of serialized data in the specified format, marshaled from a string of serialized data or a map.

transform.ToMath

transform.ToMath INPUT [OPTIONS]

Returns the given mathematical markup, written in the LaTeX language, rendered to HTML.

transform.Unmarshal

transform.Unmarshal [OPTIONS] INPUT

Returns a map or an array parsed from serialized data in CSV, JSON, TOML, YAML, or XML format.

transform.XMLEscape

transform.XMLEscape INPUT

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