markd 0.8.0+2 copy "markd: ^0.8.0+2" to clipboard
markd: ^0.8.0+2 copied to clipboard

outdatedDart 1 only

A fork of dart-markdown for easy customizing markdown syntaxes.

markd #

A fork of David Peek's dart-markdown for easy customization of Markdown syntaxes.

Differences:

  1. LinkMapper is introduced to map URL specified in a link.

  2. InlineSyntax introduces additional argument, caseSensitive.

  3. The header syntax requires a whitespace between # and the text, so #foo can represent a link (like Github does). For example, # foo is a header, while #foo is not.

  4. The options argument is introduced to customize individual invocationx.

  5. strikethrough is supported

  6. Pandoc style code block (~~~) is not supported.

API Reference

Usage #

import 'package:markd/markdown.dart' show markdownToHtml;

void main() {
  print(markdownToHtml('Hello *Markdown*'));
  //=> <p>Hello <em>Markdown</em></p>
}

You can create and use your own syntaxes.

import 'package:markd/markdown.dart';

void main() {
  var syntaxes = [new TextSyntax('nyan', sub: '~=[,,_,,]:3')];
  print(markdownToHtml('nyan', inlineSyntaxes: syntaxes));
  //=> <p>~=[,,_,,]:3</p>
}

You can find the documentation for this library here.

##Who Uses

  • Quire - a simple, collaborative, multi-level task management tool.
2
likes
0
pub points
70%
popularity

Publisher

verified publisherquire.io

A fork of dart-markdown for easy customizing markdown syntaxes.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

rikulo_commons

More

Packages that depend on markd