From 2214ae4e660d71b49bfa07f684612150ad3c8da8 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 10 Apr 2012 00:28:10 +0200 Subject: Pegdown: Enable extensions ABBREVIATIONS, AUTOLINKS, SMARTYPANTS, TABLES. --- src/mulk/benki/util.clj | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mulk/benki/util.clj b/src/mulk/benki/util.clj index ee53a7e..6641530 100644 --- a/src/mulk/benki/util.clj +++ b/src/mulk/benki/util.clj @@ -99,7 +99,13 @@ ;;;; * User input -(defonce pegdown (PegDownProcessor.)) +(def pegdown (PegDownProcessor. + (bit-or org.pegdown.Extensions/SMARTYPANTS + org.pegdown.Extensions/ABBREVIATIONS + org.pegdown.Extensions/TABLES + org.pegdown.Extensions/AUTOLINKS))) + +(def markdown (PegDownProcessor.)) (defn markdown->html [markdown] (.markdownToHtml pegdown markdown)) -- cgit v1.2.3