From b0d0a62c3b994970c7e1f4bac0784f6a9249acdb Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 24 Dec 2015 21:54:36 +0100 Subject: [PATCH] Added markdown filter to docs --- .../templates/filters/markdown/contents.lr | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 content/docs/api/templates/filters/markdown/contents.lr diff --git a/content/docs/api/templates/filters/markdown/contents.lr b/content/docs/api/templates/filters/markdown/contents.lr new file mode 100644 index 00000000..bebed556 --- /dev/null +++ b/content/docs/api/templates/filters/markdown/contents.lr @@ -0,0 +1,22 @@ +title: markdown +--- +signature: source +--- +summary: Converts markdown to HTML +--- +type: filter +--- +version_added: 2.0 +--- +body: + +This filter converts a markdown string into HTML. This behaves the same as +the [Markdown Type :ref](../../../db/types/markdown/). + +## Example + +```html+jinja +
+ {{ "Hello **World**"|markdown }} +
+```