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

outdated

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() {
  print(markdownToHtml(
    'Hello **Markdown**!',

    // The options with default value `true`.
    enableAtxHeading: true,
    enableBlankLine: true,
    enableBlockquote: true,
    enableIndentedCodeBlock: true,
    enableFencedBlockquote: true,
    enableFencedCodeBlock: true,
    enableList: true,
    enableParagraph: true,
    enableSetextHeading: true,
    enableTable: true,
    enableHtmlBlock: true,
    enableLinkReferenceDefinition: true,
    enableThematicBreak: true,
    enableAutolinkExtension: true,
    enableAutolink: true,
    enableBackslashEscape: true,
    enableCodeSpan: true,
    enableEmoji: true,
    enableEmphasis: true,
    enableHardLineBreak: true,
    enableImage: true,
    enableLink: true,
    enableRawHtml: true,
    enableSoftLineBreak: true,
    enableStrikethrough: true,
    encodeHtml: true,

    // The options with default value `false`.
    enableHeadingId: false,
    enableHighlight: false,
    enableFootnote: false,
    enableTaskList: false,
    enableSubscript: false,
    enableSuperscript: false,
    enableKbd: false,
    enableTagfilter: false,
    forceTightList: false,

    // Customised syntaxes.
    extensions: const <Syntax>[],
  ));
  //=> <p>Hello <strong>Markdown</strong>!</p>
}
14
likes
0
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

License

unknown (license)

Dependencies

args, source_span

More

Packages that depend on dart_markdown