From d61661729240269f100818012efa78e1b4fa55e1 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. --- docs/content/templates/functions.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/content/templates/functions.md b/docs/content/templates/functions.md index 4d4d9332c..e35c35cdd 100644 --- a/docs/content/templates/functions.md +++ b/docs/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.