summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-10 00:28:10 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-10 00:28:10 +0200
commit2214ae4e660d71b49bfa07f684612150ad3c8da8 (patch)
treedcb3b8755e455bfedc5fbacf9e67c843b2b9bb81
parent1544df66a419113dde904bf7cb50e0dc3d4c15d9 (diff)
Pegdown: Enable extensions ABBREVIATIONS, AUTOLINKS, SMARTYPANTS, TABLES.
-rw-r--r--src/mulk/benki/util.clj8
1 files changed, 7 insertions, 1 deletions
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))