mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
e4b0e69724
Showdown now supports a simple HTML to Markdown converter. **Usage:** ``` var conv = new showdown.Converter(); var md = conv.makeMarkdown('<a href="/url">a link</a>'); ``` Closes #388, #233
16 lines
200 B
HTML
16 lines
200 B
HTML
<ul>
|
|
<li>foo</li>
|
|
<li>bar</li>
|
|
<li>baz</li>
|
|
</ul>
|
|
<ul>
|
|
<li><p>foo</p></li>
|
|
<li><p>bar</p></li>
|
|
<li>baz</li>
|
|
</ul>
|
|
<ol>
|
|
<li>one</li>
|
|
<li>2</li>
|
|
<li>three</li>
|
|
</ol>
|