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.
4 files changed
tree: 59e94615d87d3aa7cba1fa57a3fa16137e5b6919
  1. lib/
  2. test/
  3. .gitignore
  4. LICENSE
  5. pubspec.yaml
  6. README.md
README.md

dartdoc markdown library

This is a standalone version of the dartdoc markdown library. It parses markdown and converts it to HTML.

Installation

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

Usage

import "package:markdown/markdown.dart" show markdownToHtml;

main() {
  print(markdownToHtml("Hello *Markdown*"));
}