html-2-md-converter
HTML
<h1>Turndown Demo</h1> <h2>Usage</h2> <pre><code class="language-js">var turndownService = new TurndownService() console.log( turndownService.turndown('<h1>Hello world</h1>') )</code></pre> <hr /> <p>It aims to be <a href="http://commonmark.org/">CommonMark</a> compliant, and includes options to style the output. These options include:</p> <ul> <li>headingStyle (setext or atx)</li> <li>horizontalRule (*, -, or _)</li> <li>bullet (*, -, or +)</li> <li>codeBlockStyle (indented or fenced)</li> <li>fence (` or ~)</li> <li>emDelimiter (_ or *)</li> <li>strongDelimiter (** or __)</li> <li>linkStyle (inlined or referenced)</li> <li>linkReferenceStyle (full, collapsed, or shortcut)</li> </ul>
Markdown
Heading style
setext
atx
Horizontal rule
* * *
- - -
_ _ _
Bullet
*
-
+
Code block style
indented
fenced
Fence
```
~~~
Em delimiter
_
*
Strong delimiter
**
__
Link style
inlined
referenced
Link reference style
full
collapsed
shortcut