Skip to content

ReverseMarkdown.Net is a Html to Markdown (http://daringfireball.net/projects/markdown/syntax) converter library in C#. Conversion is very reliable since HtmlAgilityPack (HAP) library is used for traversing the Html DOM

License

Notifications You must be signed in to change notification settings

JuanAr/reversemarkdown-net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meet ReverseMarkdown Build status NuGet Version

ReverseMarkdown is a Html to Markdown (http://daringfireball.net/projects/markdown/syntax) converter library in C#. Conversion is very reliable since HtmlAgilityPack (HAP) library is used for traversing the Html DOM.

Note that the library implementation is based Ruby based on Html to Markdown converter xijo/reverse_markdown.

Usage

You can install the package from NuGet using Install-Package ReverseMarkdown or clone the repository and built it yourself.

var converter = new ReverseMarkdown.Converter();

string html = "This a sample <strong>paragraph</strong> from <a href=""http://test.com"">my site</a>";

string result = converter.Convert(html);

//result This a sample **paragraph** from [my site](http://test.com)
// with config
string unknownTagsConverter = "pass_through";
bool githubFlavored = true;
var config = new ReverMarkdown.Config(unknownTagsConverter, githubFlavoured);
var converter = new ReverseMarkdown.Converter(config);

Features

  • Supports all the established html tags like h1, h2, h3, h4, h5, h6, p, em, strong, i, b, blockquote, code, img, a, hr, li, ol, ul, table, tr, th, td, br
  • Can deal with nested lists

Copyright

Copyright © 2015 Babu Annamalai

License

ReverseMarkdown is licensed under MIT. Refer to license.txt for more information.

About

ReverseMarkdown.Net is a Html to Markdown (http://daringfireball.net/projects/markdown/syntax) converter library in C#. Conversion is very reliable since HtmlAgilityPack (HAP) library is used for traversing the Html DOM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%