{"repo":"nextjournal/markdown","free":true,"listed":false,"github":"https://github.com/nextjournal/markdown","clone":"git clone https://github.com/nextjournal/markdown.git","description":"A cross-platform Clojure/Script parser for Markdown","language":"Clojure","stars":96,"topics":["clojure","clojurescript","markdown"],"license":"ISC","category":"productivity","readme_excerpt":"nextjournal markdown ) A cross-platform clojure library for Markdown parsing and transformation. 🚧 For a richer reading experience read this readme as a clerk notebook. Features Focus on data : parsing yields an AST (à la Pandoc) of nested data representing a structured document. Cross Platform : using commonmark-java on the JVM and markdown-it for ClojureScript. Configurable Hiccup conversion . Try Try it online. Flavor We adhere to CommonMark Spec and comply with extensions from Github flavoured Markdown. Additionally, we parse $\\LaTeX$ formulas (delimited by a $ for inline rendering or $$ for display mode). Usage Parsing markdown into an AST: Hiccup rendering To transform the above AST into hiccup syntax: The transformation of markdown node types can be customized like this: Parse options The following options are available that affect parsing: - :disable-inline-formulas true : disable the parsing of inline formulas HTML blocks and HTML inlines There is no default renderer for :html-inline and :html-block , since emitting raw strings is left to the consumer. Supply your own: Per CommonMark, an HTML block ends at the first blank line, and everything up to that point stays raw. Put a blank line after the opening tag to have the contents parsed as markdown: Transforming to other targets We've built hiccup transformation in for convenience, but the same approach can be used to target more formats. This library is one of the building blocks of Clerk where it is used for render","default_branch":null,"files":null,"tree":[],"storefront":"/r/nextjournal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nextjournal/markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}