Last updated:
0 purchases
marker
marker #
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:
original
changelog
any custom flavor
The renderer supports both inline and reference links and images.
Example
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);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.