Skip to content

Latest commit

History

957 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

HTML2Markdown

Converts HTML to Markdown.


Html2Markdown

Build Status

BranchStatus
mastermaster
developdevelop

CoverageQuality Gate Status

Support

This project will currently convert the following HTML tags:-

  • <a>
  • <strong>
  • <b>
  • <em>
  • <i>
  • <br>
  • <code>
  • <h1>
  • <h2>
  • <h3>
  • <h4>
  • <h5>
  • <h6>
  • <blockquote>
  • <img>
  • <hr>
  • <p>
  • <pre>
  • <ul>
  • <ol>

Installing via NuGet

NuGet version

Install-Package Html2Markdown

Usage

Strings

varhtml="Something to <strong>convert</strong>";varconverter=newConverter();varmarkdown=converter.Convert(html);

Files

varpath="file.html";varconverter=newConverter();varmarkdown=converter.ConvertFile(path);

Documentation

Library Documentation

Customise

Create new IScheme implementation

Create your own implementation of IScheme and construct Converter with that.

varhtml="Something to <strong>convert</strong>";varconverter=newConverter(customConversionScheme);varmarkdown=converter.Convert(html);

Try it

This library is showcased at http://html2markdown.bayn.es.

Contributing

For those interested in contributing then please read the guidelines

License

This project is licensed under Apache License 2.0.

About

A library for converting HTML to markdown syntax in C#

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages