v0.6.0
marker
Markdown ライブラリ用のレンダラー(プリンター)。解析された AST を Markdown に再レンダリングします。
5いいね 3.7万30日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Dart用のMarkdownレンダラー(プリンター)
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Marker is a Markdown renderer (printer) for Dart. It takes a list of Node objects produced by
the parser and renders it back to a string.
Supported markdown flavors:
The renderer supports both inline and reference links and images.
import 'dart:io';
import 'package:markdown/markdown.dart';
import 'package:marker/marker.dart';
/// Renders CHANGELOG.md with all links inline
void main() {
final file = File('CHANGELOG.md');
/// Contains parsed tree
final nodes = Document().parseLines(file.readAsLinesSync());
/// Contains markdown text
final markdown = render(nodes);
print(markdown);
}