Updated unittest dependency, bumped version
1 file changed
tree: 1b72dd78a6f143a8a8bc095012b3b1b71b1f2f6b
  1. lib/
  2. test/
  3. .gitignore
  4. AUTHORS
  5. LICENSE
  6. pubspec.yaml
  7. README.md
README.md

markdown

This is a portable markdown library written in dart. It can parse markdown into html on both the client and server.

Usage

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>
}

You can find the documentation for this library here.