feat: org-mode heading id link support

This commit is contained in:
Tienson Qin
2020-11-19 18:02:28 +08:00
parent 5cd527d7bb
commit ebfb21d799
2 changed files with 39 additions and 22 deletions

View File

@@ -82,6 +82,13 @@
(string/ends-with? (first arguments) "))"))
(subs (first arguments) 2 (- (count (first arguments)) 2))))
(and (vector? block)
(= "Link" (first block))
(map? (second block))
(= "id" (:protocol (second (:url (second block))))))
(:link (second (:url (second block))))
:else
nil)]
(when (and block-id