dart_markdown 3.1.7 copy "dart_markdown: ^3.1.7" to clipboard
dart_markdown: ^3.1.7 copied to clipboard

A portable Markdown library written in Dart that can parse Markdown into AST and HTML.

example/main.dart

import 'package:dart_markdown/dart_markdown.dart';

void main() {
  final markdown = Markdown();

  // AST nodes.
  final nodes = markdown.parse('Hello **Markdown**!');

  // Convert to an HTML string.
  final html = nodes.toHtml();

  print(html);
  //=> <p>Hello <strong>Markdown</strong>!</p>
}
14
likes
150
points
3.16k
downloads

Publisher

verified publishertagnote.app

Weekly Downloads

A portable Markdown library written in Dart that can parse Markdown into AST and HTML.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, source_span

More

Packages that depend on dart_markdown