All Projects → baynezy → Html2markdown

baynezy / Html2markdown

Licence: apache-2.0
A library for converting HTML to markdown syntax in C#

Projects that are alternatives of or similar to Html2markdown

Vue Styleguidist
Created from react styleguidist for Vue Components with a living style guide
Stars: ✭ 2,133 (+1177.25%)
Mutual labels:  markdown
Python Markdown Editor
Standalone editor for your markdown files
Stars: ✭ 164 (-1.8%)
Mutual labels:  markdown
Remark Toc
plugin to generate a Table of Contents (TOC)
Stars: ✭ 165 (-1.2%)
Mutual labels:  markdown
Markdown Table
Markdown tables, with alignment
Stars: ✭ 164 (-1.8%)
Mutual labels:  markdown
Metal
基于beego开发的网站,管理后台系统,包含功能:登录,用户管理,权限管理,多线程获取数据,定时任务,爬虫,markdown,七牛上传图片。
Stars: ✭ 165 (-1.2%)
Mutual labels:  markdown
C4 Builder
This is a documentation builder. You feed it .md and .puml and it exports a site, pdf, or a markdown with navigation.
Stars: ✭ 164 (-1.8%)
Mutual labels:  markdown
Markdown Toolbar Element
Markdown formatting buttons for text inputs.
Stars: ✭ 160 (-4.19%)
Mutual labels:  markdown
Vue Markdown Editor
A markdown editor built on Vue
Stars: ✭ 169 (+1.2%)
Mutual labels:  markdown
Usaspending Api
Server application to serve U.S. federal spending data via a RESTful API
Stars: ✭ 166 (-0.6%)
Mutual labels:  markdown
Preact Markup
⚡️ Render HTML5 as VDOM, with Components as Custom Elements!
Stars: ✭ 167 (+0%)
Mutual labels:  markdown
Awesome Scientific Writing
⌨️ A curated list of awesome tools, demos and resources to go beyond LaTeX
Stars: ✭ 162 (-2.99%)
Mutual labels:  markdown
Xmpp
An XMPP library written for .Net in C#.
Stars: ✭ 165 (-1.2%)
Mutual labels:  nuget
Monogame.forms
MonoGame.Forms is the easiest way of integrating a MonoGame render window into your Windows Forms project. It should make your life much easier, when you want to create your own editor environment.
Stars: ✭ 165 (-1.2%)
Mutual labels:  nuget
Identityserver4.ldapextension
IdentityServer4 Ldap Extension (OpenLdap or ActiveDirectory)
Stars: ✭ 163 (-2.4%)
Mutual labels:  nuget
Gulp Markdown
Markdown to HTML
Stars: ✭ 167 (+0%)
Mutual labels:  markdown
Textlint
The pluggable natural language linter for text and markdown.
Stars: ✭ 2,158 (+1192.22%)
Mutual labels:  markdown
Hastyscribe
Self-contained markdown compiler generating self-contained HTML documents
Stars: ✭ 166 (-0.6%)
Mutual labels:  markdown
Maid
Markdown driven task runner.
Stars: ✭ 1,999 (+1097.01%)
Mutual labels:  markdown
Markdownify
The HTML to Markdown converter for PHP
Stars: ✭ 167 (+0%)
Mutual labels:  markdown
Blog
Code for my personal blog built with Gatsby
Stars: ✭ 167 (+0%)
Mutual labels:  markdown

HTML2Markdown

Converts HTML to Markdown.

Join the chat at https://gitter.im/Html2Markdown/Lobby


Html2Markdown

Build Status

Branch Status
master master
develop develop

Code Quality

Codacy Badge

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

var html = "Something to <strong>convert</strong>";
var converter = new Converter();
var markdown = converter.Convert(html);

Files

var path = "file.html";
var converter = new Converter();
var markdown = converter.ConvertFile(path);

Customise

Create new IScheme implementation

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

var html = "Something to <strong>convert</strong>";
var converter = new Converter(customConversionScheme);
var markdown = 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].