FLUTTER ECOSYSTEM

f3ath/marker

Dart用のMarkdownレンダラー(プリンター)

マーカー のプロジェクト画像
Stars
4
Forks
0
最終プッシュ(UTC)
2023/08/07
プロジェクト状態
公開中
Alexey GitHub avatar
GITHUB User

Alexey ↗

If I had ever learnt, I should have been a great proficient.

Salesforce Silicon Valley, CA
言語Dart

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 5 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

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:

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);
}