This commit is contained in:
2026-02-04 14:50:07 -07:00
parent 8f0de99443
commit 2b7e957394

View File

@@ -62,6 +62,12 @@
[:article
rendered]]]))))
;;; Further dispatching on `org-element`
(defmethod org-element "keyword" [e]
(org-keyword e))
(defn- gather-footnotes [loc]
@@ -69,18 +75,29 @@
(defn- render-pprint [x]
[:details
{:summary (:type x)}
[:samp {:style {:overflow "scroll"
:display "block"
:white-space "pre"}}
()]])
(defn- renderer-error
"Render a `Throwable` to display within the document."
[e]
[:details
[:summary "Renderer error!"]
[:div
[:samp {:style {:overflow "scroll"
:display "block"
:white-space "pre"}}
(with-out-str
(clojure.stacktrace/print-stack-trace e))]]])
[:samp {:style {:overflow "scroll"
:display "block"
:white-space "pre"}}
(with-out-str
(clojure.stacktrace/print-stack-trace e))]])
(defmethod org-element "org-data"
[{:keys [children]}]
children)
(defmethod org-keyword "TITLE" [e])