exported opml add title tag

pull/2076/head
rcmerci 2021-06-01 11:35:46 +08:00 committed by Tienson Qin
parent 6654b85520
commit a268a179fd
4 changed files with 8 additions and 7 deletions

View File

@ -29,5 +29,5 @@
ok-handler))
(exportMarkdown [this content config references]
(throw "not support"))
(exportOPML [this content config]
(exportOPML [this content config title]
(throw "not support")))

View File

@ -62,8 +62,8 @@
(or references default-references)))
(defn parse-export-opml
[content config]
(parseAndExportOPML content config))
[content config title]
(parseAndExportOPML content config title))
(defn ast-export-markdown
[ast config references]
@ -244,8 +244,8 @@
true)
(exportMarkdown [this content config references]
(parse-export-markdown content config references))
(exportOPML [this content config]
(parse-export-opml content config)))
(exportOPML [this content config title]
(parse-export-opml content config title)))
(defn plain->text
[plains]

View File

@ -6,4 +6,4 @@
(loaded? [this])
(lazyLoad [this ok-handler])
(exportMarkdown [this content config references])
(exportOPML [this content config]))
(exportOPML [this content config title]))

View File

@ -430,7 +430,8 @@
(mapv (fn [{:keys [path content names format]}]
(when (first names)
[path (fp/exportOPML f/mldoc-record content
(f/get-default-config format))])))
(f/get-default-config format)
(first names))])))
(remove nil?)))
(defn- convert-md-files-unordered-list-or-heading