commit | 1edb13655e1eda6eda0e7961b7d3ddde70d430a1 | [log] [tgz] |
---|---|---|
author | David Peek <david.peek@massiveinteractive.com> | Thu Feb 21 11:25:51 2013 +1100 |
committer | David Peek <david.peek@massiveinteractive.com> | Thu Feb 21 11:25:51 2013 +1100 |
tree | 59e94615d87d3aa7cba1fa57a3fa16137e5b6919 | |
parent | 55569867d4ccdf7b70d15a583c53d600e06289c1 [diff] |
Added an optional classifier callback to markdownToHtml to classify source found in github style triple backtick code blocks. Added Dart classifier built on analyzer_experimental based on original dartdoc classifier. Added dart handler to default classifier impl.
This is a standalone version of the dartdoc markdown library. It parses markdown and converts it to HTML.
Add this to your pubspec.yaml
(or create it):
dependencies: markdown: any
Then run the Pub Package Manager (comes with the Dart SDK):
pub install
import "package:markdown/markdown.dart" show markdownToHtml; main() { print(markdownToHtml("Hello *Markdown*")); }