v0.6.0
marker
마크다운 라이브러리용 렌더러(프린터). 파싱된 AST를 다시 마크다운으로 렌더링합니다.
5좋아요 3.7만30일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
Dart용 마크다운 렌더러(프린터)
아래는 영문 원문 스냅샷입니다. 최신 내용은 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);
}