v0.6.0
marker
मार्कडाउन लाइब्रेरी के लिए रेंडरर (प्रिंटर)। पार्स किए गए AST को मार्कडाउन में वापस रेंडर करता है।
5लाइक 37 हज़ार30-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
डार्ट के लिए मार्कडाउन रेंडरर (प्रिंटर)
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री 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);
}