(code->hiccup code)

Returns the code in the given string with Hiccup-compatible data structures added.

Example

(code->hiccup "(+ 1 2)")

Source

(defn code->hiccup "Returns the code in the given string with Hiccup-compatible data structures added." [code] (->> (ps/parse code) (ps/flatten node->hiccup) (into [:span {}])))