mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
Markdown support
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user