Add a chomp function.

- Mostly useful in pipelines.
This commit is contained in:
Austin Ziegler
2014-12-09 20:37:51 -05:00
committed by bep
parent 14e93de8a1
commit 6033abe1e7
2 changed files with 19 additions and 0 deletions

View File

@@ -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 "<p>Blockhead</p>\n"``"<p>Blockhead</p>"`
### highlight
Take a string of code and a language, uses Pygments to return the syntax
highlighted code in HTML. Used in the [highlight