Skip to content
Projetos

mysticmind/reversemarkdown-net

Ver no GitHub

Sobre

ReverseMarkdown.Net é uma biblioteca C# que converte HTML em Markdown.

Desenvolvimento web e de aplicativos

Como estes números são medidos

O que você pode fazer

  • 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.

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
0
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

ReverseMarkdown

Build status NuGet Version Docs

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 ❤

GitHub Sponsor

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.

Sponsor advertisement: Byteful, ethically sourced proxies, built in the UK. Use code REVERSEMD10 for 10% off.

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:

Acknowledgements

Inspired by the Ruby converter xijo/reverse_markdown.

License

MIT License. Copyright © Babu Annamalai.

Explore projetos relacionados

Carregando…