File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 (when-not (.isEmpty spans)
7878 (let [^SourceSpan first-span (first spans)
7979 ^SourceSpan last-span (last spans)]
80- {:line (.getLineIndex first-span)
80+ {:input-index (.getInputIndex first-span)
81+ :length (apply + (map #(.getLength ^Node %) spans))
82+ :line (.getLineIndex first-span)
8183 :column (.getColumnIndex first-span)
8284 :end-line (.getLineIndex last-span)
8385 :end-column (+ (.getColumnIndex last-span) (.getLength last-span))}))))
8486
85- #_(node->source-pos n)
86-
8787; ; multi stuff
8888(defmulti open-node (fn [_ctx node] (type node)))
8989
90- #_(bean x)
91-
9290(defmulti close-node (fn [_ctx node] (type node)))
9391
9492(defmethod close-node :default [ctx _node] (u/update-current-loc ctx z/up))
104102 (u/update-current-loc ctx (fn [loc] (u/zopen-node loc (merge {:type (paragraph-type )}
105103 (node->loc node))))))
106104
107- #_(parse " Dude" )
108-
109105(defmethod open-node BlockQuote [ctx node]
110106 (u/update-current-loc ctx (fn [loc] (u/zopen-node loc (merge {:type :blockquote }
111107 (node->loc node))))))
You can’t perform that action at this time.
0 commit comments