Strings

lower
Lower case.
upper
Upper case.
capitalize
First character upper, the rest lower.
title
Tera’s naive title case. Go’s title is title_case.
title_case
Title case in style (ap, chicago, go, firstupper, none; default: titleCaseStyle).
wordcount
Tera’s word count (whitespace split).
trim
Trims whitespace, or the string pat repeatedly.
trim_start
Trims leading whitespace, or pat.
trim_end
Trims trailing whitespace, or pat.
trim_chars
Trims any of the characters in chars from both ends.
trim_start_chars
Trims any of chars from the start.
trim_end_chars
Trims any of chars from the end.
strip_prefix
Removes prefix once.
strip_suffix
Removes suffix once.
replace
Replaces every from with to.
split
Splits on pat.
regex_replace
Replaces matches of pattern with rep ($1 groups).
regex_find
Matches of pattern, at most limit.
substr
length characters from start (negative counts from the end).
truncate
Tera’s plain-text truncate to length characters plus end.
truncate_html
Go’s HTML-aware truncate: closes open tags, ellipsis default …. Keeps the input’s safety.
pad_start
Pads on the left with spaces to width characters.
pad_end
Pads on the right with spaces to width characters.
indent
Tera’s indent.
newlines_to_br
Replaces line breaks with <br>.
pluralize
Tera’s suffix pluralizer for a count (singular, plural). Go’s inflect.Pluralize is pluralize_word.
pluralize_word
English plural of a word.
singularize_word
English singular of a word.
humanize
Go’s humanize (my-first-post → My first post; numbers → ordinals).
ordinalize
1 → 1st.
urlize
The URL-safe path form of a string, as Go’s urlize makes it.
anchorize
An anchor id as Go generates it; style github (default), github-ascii or blackfriday.
plainify
Strips HTML tags.
emojify
Replaces :shortcode: emoji.
markdownify
Renders Markdown with the current page’s hooks; a single paragraph is unwrapped.
render_string
Renders Markdown with page’s hooks; display="block" keeps the paragraph.
highlight
Syntax highlighting of the input as lang (Chroma classes, or inline styles per noClasses; needs the site’s highlight configuration).
to_math
LaTeX to MathML and/or HTML with KaTeX 0.16.22 and mhchem, as Go renders it (SHOULD; feature math). options: KaTeX’s output (mathml default, html, htmlAndMathml), displayMode, leqno, fleqn, errorColor, macros, minRuleThickness, throwOnError (default true), strict (error default, ignore, warn: warnings). An error (a formula KaTeX rejects, invalid options) fails the render; with optional=true it is a warning (id to_math) and the result none.
diagrams_goat
{inner (safe SVG), width, height, wrapped} for the ASCII diagram text (SHOULD; feature goat).
format_number
The number with precision decimals in the format of the render’s lang.
filesize_format
Human file size (binary units by default).

    Type to search titles, headings and text.