mysticmind/reversemarkdown-net
소개
ReverseMarkdown.Net은 HTML을 Markdown으로 변환하는 C# 라이브러리입니다.
웹 및 앱 개발What you can do
- Seven flavors: Default, GitHub, CommonMark, Slack, Telegram, MultiMarkdown and Pandoc.
- Spec-compliant and fast: 100% CommonMark/GFM round-trips, 2–2.6× faster than v5, Native AOT ready.
- Extensible: HTML preprocessing, custom readers and a Markdown DOM.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
ReverseMarkdown
Fast, spec-compliant HTML to Markdown converter for .NET, built on AngleSharp's HTML5 parser.
📖 Documentation · Using v5? See the v5 docs.
Find it useful? Sponsor ReverseMarkdown ❤
Install
dotnet add package ReverseMarkdown
Quick start
var converter = new ReverseMarkdown.Converter();
string markdown = converter.Convert("<p>This is <strong>bold</strong> and <a href=\"https://example.com\">a link</a>.</p>");
// This is **bold** and [a link](https://example.com).
Choose an output flavor (GitHub, CommonMark, Slack, Pandoc and more) with
new Converter(new Config { Flavor = Config.MarkdownFlavor.GitHub }). See
Getting Started for configuration,
TextWriter output and HTML preprocessing.
Features
- Seven flavors: Default, GitHub, CommonMark, Slack, Telegram, MultiMarkdown and Pandoc.
- Spec-compliant and fast: 100% CommonMark/GFM round-trips, 2–2.6× faster than v5, Native AOT ready.
- Extensible: HTML preprocessing, custom readers and a Markdown DOM.
Sponsors
Built and maintained in my spare time. Sponsoring keeps it fast and up to date; Silver sponsors and above get their logo here and on NuGet.
Founding sponsor
ReverseMarkdown is sponsored by Byteful.
Sponsored. Claims in the banner are Byteful's own.
Your logo here? Become a sponsor.
Documentation
The full guide lives at mysticmind.github.io/reversemarkdown-net:
- Getting Started
- Performance
- Flavors
- Configuration reference
- HTML Preprocessing
- Extending (custom readers, recipes)
- Migrating from v5
Acknowledgements
Inspired by the Ruby converter xijo/reverse_markdown.
License
MIT License. Copyright © Babu Annamalai.
관련 프로젝트 살펴보기
불러오는 중…
