title deriving improved
This commit is contained in:
+2
-3
@@ -37,9 +37,8 @@
|
|||||||
(print-str year month day title))
|
(print-str year month day title))
|
||||||
|
|
||||||
(defn derive-title [md-text]
|
(defn derive-title [md-text]
|
||||||
(apply str
|
(sreplace (first (split-lines md-text))
|
||||||
(remove #{\# \_ \*}
|
#"(#+|_|\*+|<.*?>)" ""))
|
||||||
(first (split-lines md-text)))))
|
|
||||||
|
|
||||||
(defn get-date
|
(defn get-date
|
||||||
"Returns today's date"
|
"Returns today's date"
|
||||||
|
|||||||
Reference in New Issue
Block a user