Markdown support

This commit is contained in:
Tienson Qin
2020-05-12 12:09:50 +08:00
parent 7c89026e2f
commit 68faebdf7f
19 changed files with 166 additions and 94 deletions

View File

@@ -6,11 +6,6 @@
(defn loaded? []
js/window.Asciidoctor)
(defn to-html
[content config]
(when (loaded?)
(.makeHtml (js/window.showdown.Converter.) content)))
(defn ->edn
[content config]
nil)

View File

@@ -165,6 +165,7 @@
heading
{:heading/meta meta
:heading/file file
:heading/format format
:heading/page page
:heading/content (utf8/substring encoded-content
(:pos meta)

View File

@@ -41,6 +41,4 @@
(loaded? [this]
(some? (loaded?)))
(lazyLoad [this ok-handler]
(loader/load
(config/asset-uri "/static/js/mldoc_org.min.js")
ok-handler)))
true))