From 09e858a7e219da7afdfa63024ce1110ffc686b81 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 12 Mar 2017 23:00:58 +0100 Subject: Added support for rendering markdown. If a syntax name starts with 'Rendered ' (lazy fix, we'll come up with something better later) the paste will now be handled by the corresponding renderer. For now we only support markdown, but this can easily be extended to support other renderers as well. --- templates/view.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'templates') diff --git a/templates/view.tmpl b/templates/view.tmpl index 445a1ad..a23c36e 100644 --- a/templates/view.tmpl +++ b/templates/view.tmpl @@ -18,6 +18,12 @@ Download as plain text #end if +#if $rendered +
+#end if $text +#if $rendered +
+#end if #end def -- cgit v1.2.3