markd
markd copied to clipboard
Yet another markdown parser, Compliant to CommonMark specification, written in Crystal.
This PR contains the beginnings of footnotes implementation: * Only supports footnotes with a single reference (should support multiple) * Footnote definitions only allow inline elements (should allow blocks) *...
I have implemented a couple of alternative renderers, specifically: * markdown -> terminal * markdown -> markdown I have code that should make it trivial to write a couple more...
``` ~下面是一段 union 类型的示例。~ ``` ```crystal MARKDOWN_OPTIONS = Markd::Options.new(smart: true, gfm: true) Markd.to_html(text, options: MARKDOWN_OPTIONS) ``` Above will generate following `` tag like following: 