dart_markdown 3.1.6 copy "dart_markdown: ^3.1.6" to clipboard
dart_markdown: ^3.1.6 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
160
pub points
76%
popularity

Publisher

verified publishertagnote.app

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