A markdown prettier library written in Dart.
import 'package:markdown_prettier/markdown_prettier.dart';
void main() {
const text = '''
| abc | defghi |
:-: | -----------:
bar | baz
''';
final result = MarkdownPrettier().parse(text);
print(result);
}
output:
| abc | defghi |
| :-: | -----: |
| bar | baz |
import 'package:dart_markdown/dart_markdown.dart';
import 'package:markdown_prettier/markdown_prettier.dart';
void main() {
const text = '''
| abc | defghi |
:-: | -----------:
bar | baz
''';
final nodes = Markdown().parse(text);
final result = MarkdownPrettier().parseNodes(nodes);
print(result);
}
import 'package:dart_markdown/dart_markdown.dart';
import 'package:markdown_prettier/markdown_prettier.dart';
void main() {
const text = '''
| abc | defghi |
:-: | -----------:
bar | baz
''';
final nodes = Markdown().parse(text);
final result = nodes.pretty();
print(result);
}