tag | 471fb99115899d70e706d898f8cf5f4980e341b7 | |
---|---|---|
tagger | Kevin Moore <github@j832.com> | Sat Jan 03 22:47:50 2015 |
object | e28e00026cab2b48e47f97ff775c339b190d3292 |
commit | e28e00026cab2b48e47f97ff775c339b190d3292 | [log] [tgz] |
---|---|---|
author | Kevin Moore <github@j832.com> | Thu Dec 18 22:16:18 2014 |
committer | Kevin Moore <github@j832.com> | Thu Dec 18 22:16:18 2014 |
tree | 1b72dd78a6f143a8a8bc095012b3b1b71b1f2f6b | |
parent | 5a2df14e617f9762b425395678999ce2f145ea2b [diff] |
Updated unittest dependency, bumped version
This is a portable markdown library written in dart. It can parse markdown into html on both the client and server.
You can find the installation directions here.
import 'package:markdown/markdown.dart' show markdownToHtml; main() { print(markdownToHtml('Hello *Markdown*')); //=> <p>Hello <em>Markdown</em></p> }
You can create and use your own syntaxes!
import 'package:markdown/markdown.dart'; main() { List<InlineSyntax> syntaxes = [new TextSyntax('nyan', sub: '~=[,,_,,]:3')]; print(markdownToHtml('nyan', inlineSyntaxes: syntaxes)); //=> <p>~=[,,_,,]:3</p> }