mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
73 lines
3.5 KiB
HTML
73 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Showdown by showdownjs</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
|
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
|
|
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
|
|
</head>
|
|
<body>
|
|
<section class="page-header">
|
|
<h1 class="project-name">Showdown</h1>
|
|
<h2 class="project-tagline">A JavaScript markdown converter. Extensible. Truthful.</h2>
|
|
<a href="https://github.com/showdownjs/showdown" class="btn">View on GitHub</a>
|
|
<a href="https://github.com/showdownjs/showdown/zipball/master" class="btn">Download .zip</a>
|
|
<a href="https://github.com/showdownjs/showdown/tarball/master" class="btn">Download .tar.gz</a>
|
|
</section>
|
|
|
|
<section class="main-content">
|
|
<p><strong>Showdown</strong> is a markdown parser and html converter with an attempt to stay <a href="https://github.com/showdownjs/showdown/wiki/divergences">as close as possible</a> to the <a href="http://web.archive.org/web/20110111145019/http://attacklab.net/showdown/">original</a>, while providing extensibility through a simple yet efficient <a href="https://github.com/showdownjs/showdown/wiki/extensions">plugin</a> facility. Tables, GitHub flavoured, and what not.</p>
|
|
|
|
<h2>
|
|
<a id="get-it" class="anchor" href="#get-it" aria-hidden="true"><span class="octicon octicon-link"></span></a>Get It</h2>
|
|
|
|
<pre><code>npm install showdown
|
|
# or
|
|
bower install showdown
|
|
</code></pre>
|
|
|
|
<h2>
|
|
<a id="use-it" class="anchor" href="#use-it" aria-hidden="true"><span class="octicon octicon-link"></span></a>Use It</h2>
|
|
|
|
<pre><code>var Showdown = require('showdown');
|
|
var converter = new showdown.Converter();
|
|
|
|
converter.makeHtml('#hello markdown!');
|
|
|
|
// <h1 id="hellomarkdown">hello markdown!</h1>
|
|
</code></pre>
|
|
|
|
<h2>
|
|
<a id="need-help" class="anchor" href="#need-help" aria-hidden="true"><span class="octicon octicon-link"></span></a>Need Help?</h2>
|
|
|
|
<ul>
|
|
<li><a href="https://github.com/showdownjs/showdown/wiki">Wiki</a></li>
|
|
<li><a href="https://groups.google.com/forum/#!forum/showdownjs">Google Group</a></li>
|
|
<li><a href="https://github.com/showdownjs/showdown/issues">Issues</a></li>
|
|
<li><a href="http://stackoverflow.com/questions/tagged/showdown">stackoverflow</a></li>
|
|
</ul>
|
|
|
|
<h2>
|
|
<a id="credits" class="anchor" href="#credits" aria-hidden="true"><span class="octicon octicon-link"></span></a>Credits</h2>
|
|
|
|
<ul>
|
|
<li><a href="http://web.archive.org/web/20110111145019/http://attacklab.net/showdown/">Showdown Copyright (c) 2007 John Fraser</a></li>
|
|
<li><a href="http://daringfireball.net/projects/markdown/">Original Markdown Copyright (c) 2004-2005 John Gruber</a></li>
|
|
</ul>
|
|
|
|
<footer class="site-footer">
|
|
<span class="site-footer-owner"><a href="https://github.com/showdownjs/showdown">Showdown</a> is maintained by <a href="https://github.com/showdownjs">showdownjs</a>.</span>
|
|
|
|
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
|
|
</footer>
|
|
|
|
</section>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|