markd 0.5.1
markd: ^0.5.1 copied to clipboard
A fork of dart-markdown for easy customizing markdown syntaxes.
Dart Markdown Library #
A fork of David Peek's dart-markdown for easy customization of Markdown syntaxes.
Differences:
-
LinkResolverreplacesResolverto provide more options. -
InlineSyntaxintroduces additional argument,caseSensitive. -
The header syntax requires a whitespace between
#and the text, so#foocan represent a link (like Github does). For example,# foois a header, while#foois not.
Installation #
Add this to your pubspec.yaml (or create it):
dependencies:
markd: any
Then run the Pub Package Manager (comes with the Dart SDK):
pub install
Usage #
import 'package:markd/markdown.dart' show markdownToHtml;
main() {
print(markdownToHtml('Hello *Markdown*'));
}