a
This commit is contained in:
@@ -62,6 +62,12 @@
|
|||||||
[:article
|
[:article
|
||||||
rendered]]]))))
|
rendered]]]))))
|
||||||
|
|
||||||
|
|
||||||
|
;;; Further dispatching on `org-element`
|
||||||
|
|
||||||
|
(defmethod org-element "keyword" [e]
|
||||||
|
(org-keyword e))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defn- gather-footnotes [loc]
|
(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
|
(defn- renderer-error
|
||||||
"Render a `Throwable` to display within the document."
|
"Render a `Throwable` to display within the document."
|
||||||
[e]
|
[e]
|
||||||
[:details
|
[:details
|
||||||
[:summary "Renderer error!"]
|
[:summary "Renderer error!"]
|
||||||
[:div
|
[:samp {:style {:overflow "scroll"
|
||||||
[:samp {:style {:overflow "scroll"
|
:display "block"
|
||||||
:display "block"
|
:white-space "pre"}}
|
||||||
:white-space "pre"}}
|
(with-out-str
|
||||||
(with-out-str
|
(clojure.stacktrace/print-stack-trace e))]])
|
||||||
(clojure.stacktrace/print-stack-trace e))]]])
|
|
||||||
|
|
||||||
(defmethod org-element "org-data"
|
(defmethod org-element "org-data"
|
||||||
[{:keys [children]}]
|
[{:keys [children]}]
|
||||||
children)
|
children)
|
||||||
|
|
||||||
|
(defmethod org-keyword "TITLE" [e])
|
||||||
|
|||||||
Reference in New Issue
Block a user