yogthos / markdown-clj

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

Add an API for parsing only metadata. #162

Closed mschaef closed 4 years ago

mschaef commented 4 years ago

I'm using markdown-clj in a scenario where metadata is needed to populate a table of contents, and the HTML is not needed until later, if at all. (It's useful for performance to be able to fetch just the metadata without the full markdown parse.)

yogthos commented 4 years ago

Thanks, just pushed out 1.10.3 with the update. Could you also add a note in the docs regarding the feature. :)

mschaef commented 4 years ago

Thanks! I just submitted a second PR that adds a bit on the new function. https://github.com/yogthos/markdown-clj/pull/163