From e6bf7b9184c42f66ed8550e30f5a4e3821d7b8d5 Mon Sep 17 00:00:00 2001 From: bep Date: Tue, 25 Nov 2014 00:47:08 +0100 Subject: [PATCH] Doc for markdownify This small function feels important enough to maybe deserve more than these three lines, but this will have to do for now. This assumes that #652 gets merged. --- content/templates/functions.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/templates/functions.md b/content/templates/functions.md index 4d4d9332c..e35c35cdd 100644 --- a/content/templates/functions.md +++ b/content/templates/functions.md @@ -144,6 +144,13 @@ Declares the provided string as "safe" so Go templates will not filter it. e.g. {{ .Params.CopyrightHTML | safeHtml }} + +### markdownify + +This will run the string through the Markdown processesor. The result will be declared as "safe" so Go templates will not filter it. + +e.g. {{ .Title | markdownify }} + ### lower Convert all characters in string to lowercase.