yogthos / markdown-clj

Markdown parser in Clojure
Eclipse Public License 1.0
540 stars 120 forks source link

Parsing with metadata in ClojureScript seams broken #184

Open hiram-madelaine opened 2 years ago

hiram-madelaine commented 2 years ago

Whenever I try to parse with metadata in ClojureScript I have the pre assertion (sequential? lines-seq) that prevent the execution of the function : markdown.transformers/parse-metadata-headers It seems that the problem comes from the splitting of the lines (.split (str text "\n") "\n") that yields a JS array. Using clojure.string ns could resolve the problem (clojure.string/split (str text "\n") "\n") ?

Thank you very much

yogthos commented 2 years ago

Would you be open to do a PR for the fix?

hiram-madelaine commented 2 years ago

Yes of course