Txtmark 是Java 实现的Markdown 解析器,用来生成HTML 文档。
示例代码:
Stringresult=txtmark.Processor.process("Thisis***TXTMARK***");性能比较测试:
TestActuariusPegDownKnockoffTxtmark 1stRun(ms)2ndRun(ms)1stRun(ms)2ndRun(ms)1stRun(ms)2ndRun(ms)1stRun(ms)2ndRun(ms)PlainParagraphs11275771273103774040015764EveryWordEmphasized156210011523151313982132215446EveryWordStrong112599711151114954396474441EveryWordInlineCode38227710581052911690745139EveryWordaFastLink225716005375313980341010955EveryWordConsistingofSpecialXMLChars4045427029853044312377778775EveryWordwrappedinmanualHTMLtags33342919901896386337367362EveryLinewithamanuallinebreak51058814451440152711305656Everywordwithafulllink4522461045996188418198655Everywordwithafullimage26815011401132198519083836Everywordwithareferencelink98479082189561871912113611541615251380Everyblockaquote445206131213014784575045Everyblockacodeblock70873733761611756022Everyblockalist920912172017256226515555Allteststogether32812885518451961013010460206196
评论