2014-06-10

Discover upndown, the Markdown to HTML converter.

We recently unveiled upndown, an HTML to Markdown javascript library, for Nodejs and the browser.

upndown is meant as a low-level component allowing for easy implementation of Markdown WYSIWYG editors.

The source code is available under the MIT Licence.

Demo

Demo of a simple yet functionnal implementation here.

What it does

upndown is designed to offer a fast, reliable and whitespace perfect conversion for HTML documents that are made up of elements that have an equivalent in the Markdown syntax, making it suited for Markdown WYSIWYG editors.

How to use

Use upndown with standard JS

Use upndown with RequireJS

Server side, with NodeJS

How it works

The HTML source code is converted to a dom tree using the DOM in the browser, and using jsdom on nodejs. The DOM tree is then walked and parsed by upndown to project a Markdown equivalent for every HTML element in the DOM, resulting in a clean, fresh Markdown document.

Show more