diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-04-10 00:28:10 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2012-04-10 00:28:10 +0200 |
commit | 2214ae4e660d71b49bfa07f684612150ad3c8da8 (patch) | |
tree | dcb3b8755e455bfedc5fbacf9e67c843b2b9bb81 | |
parent | 1544df66a419113dde904bf7cb50e0dc3d4c15d9 (diff) |
Pegdown: Enable extensions ABBREVIATIONS, AUTOLINKS, SMARTYPANTS, TABLES.
-rw-r--r-- | src/mulk/benki/util.clj | 8 |
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)) |