hunt-markdown 1.0.0 released,

zoujiaqing zoujiaqing at gmail.com
Fri Feb 22 10:55:09 UTC 2019


On Tuesday, 19 February 2019 at 12:22:29 UTC, Guillaume Piolat 
wrote:
> On Tuesday, 19 February 2019 at 10:36:38 UTC, zoujiaqing wrote:
>> hunt-markdown is powerfull markdown spec parsing and randering 
>> library for Dlang. It's fast and clean. Api design like java's 
>> commonmark library.
>>
>> example code:
>> ```import hunt.markdown.node.Node;
>> import hunt.markdown.parser.Parser;
>> import hunt.markdown.renderer.html.HtmlRenderer;
>>
>> Parser parser = Parser.builder().build();
>> Node document = parser.parse("This is *New*");
>> HtmlRenderer renderer = HtmlRenderer.builder().build();
>> renderer.render(document);  // "<p>This is <em>New</em></p>\n"
>> ```
>>
>> More markdown spec like this:
>> https://spec.commonmark.org/0.28/
>>
>>
>> Github reposirory:
>> https://github.com/huntlabs/hunt-markdown
>
> Very cool! I don't think we had a CommonMark parser.

Thanks for your support :)


More information about the Digitalmars-d-announce mailing list