summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))