diff --git a/content/templates/functions.md b/content/templates/functions.md index 4138ffde9..b0fa0d9ed 100644 --- a/content/templates/functions.md +++ b/content/templates/functions.md @@ -252,6 +252,11 @@ Convert all characters in string to titlecase. e.g. `{{title "BatMan"}}` → "Batman" +### chomp +Removes any trailing newline characters. Useful in a pipeline to remove newlines added by other processing (including `markdownify`). + +e.g., `{{chomp "

Blockhead

\n"` → `"

Blockhead

"` + ### highlight Take a string of code and a language, uses Pygments to return the syntax highlighted code in HTML. Used in the [highlight