mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
update page
This commit is contained in:
parent
abf2efb4f6
commit
e32adb69a7
BIN
images/logo.png
Normal file
BIN
images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
38
index.html
38
index.html
@ -8,10 +8,11 @@
|
||||
<link href='https://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">
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.5.0/showdown.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<section class="page-header">
|
||||
<h1 class="project-name">Showdown</h1>
|
||||
<div class="project-name"><img src="images/logo.png" alt="Showdown"></div>
|
||||
<h2 class="project-tagline">An extensible Markdown to HTML converter written in Javascript</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>
|
||||
@ -19,8 +20,6 @@
|
||||
</section>
|
||||
|
||||
<section class="main-content">
|
||||
<p><img src="https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png" alt="Showdown"></p>
|
||||
|
||||
<p>Showdown is a Javascript Markdown to HTML converter, based on the original works by John Gruber. Showdown can be used client side (in the browser) or server side (with NodeJs). Check a live <a href="http://showdownjs.github.io/demo/">demo here</a></p>
|
||||
|
||||
<h1>
|
||||
@ -81,22 +80,39 @@
|
||||
<a id="changelog" class="anchor" href="#changelog" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a><a href="https://github.com/showdownjs/showdown/blob/master/CHANGELOG.md">Changelog</a>
|
||||
</h1>
|
||||
|
||||
<h1>
|
||||
<a id="credits" class="anchor" href="#credits" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Credits</h1>
|
||||
|
||||
<p>Full credit list at <a href="https://github.com/showdownjs/showdown/blob/master/CREDITS.md">https://github.com/showdownjs/showdown/blob/master/CREDITS.md</a></p>
|
||||
<div id="changelog-div"></div>
|
||||
|
||||
<p>Showdown is powered by:<br>
|
||||
<a href="https://www.jetbrains.com/webstorm/"><img src="https://www.jetbrains.com/webstorm/documentation/docs/logo_webstorm.png" alt="webstorm"></a></p>
|
||||
|
||||
<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>
|
||||
<span class="site-footer-owner"><a href="https://github.com/showdownjs/showdown">Showdown</a> is maintained by <a href="https://github.com/tivie">tivie</a>.</span>
|
||||
<span class="site-footer-credits">Full credit list <a href="https://github.com/showdownjs/showdown/blob/master/CREDITS.md">here</a>.</span>
|
||||
</footer>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
function callAjax(url, callback){
|
||||
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.onreadystatechange = function() {
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200){
|
||||
callback(xmlhttp.responseText);
|
||||
}
|
||||
};
|
||||
xmlhttp.open("GET", url, true);
|
||||
xmlhttp.send();
|
||||
}
|
||||
|
||||
var conv = new showdown.Converter();
|
||||
conv.setFlavor('github');
|
||||
|
||||
callAjax('http://raw.githubusercontent.com/showdownjs/showdown/master/CHANGELOG.md', function (data) {
|
||||
if (typeof data === 'string' || data instanceof String) {
|
||||
document.getElementById('changelog-div').innerHTML = conv.makeHtml(data);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Showdown",
|
||||
"tagline": "An extensible Markdown to HTML converter written in Javascript",
|
||||
"body": "![Showdown][sd-logo]\r\n\r\nShowdown is a Javascript Markdown to HTML converter, based on the original works by John Gruber. Showdown can be used client side (in the browser) or server side (with NodeJs). Check a live [demo here](http://showdownjs.github.io/demo/)\r\n\r\n# Who uses Showdown\r\n - [GoogleCloudPlatform](https://github.com/GoogleCloudPlatform)\r\n - [Ghost](https://ghost.org/)\r\n - [Meteor](https://www.meteor.com/)\r\n - [Stackexchange](http://stackexchange.com/) - forked as [PageDown](https://code.google.com/p/pagedown/)\r\n - [docular](https://github.com/Vertafore/docular)\r\n - [and some others...](https://www.npmjs.com/browse/depended/showdown)\r\n\r\n\r\n# Get it...\r\n\r\n* **Download tarball:** download the latest release tarball directly from [releases][releases]\r\n* **CDN:**\r\n * rawgit: `https://cdn.rawgit.com/showdownjs/showdown/<version tag>/dist/showdown.min.js`\r\n * cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/showdown/<version tag>/showdown.min.js`\r\n* **Bower:** `bower install showdown`\r\n* **npm:** `npm install showdown`\r\n* **NuGet:** `PM> Install-Package showdownjs` - [NuGet package here][nuget-package]\r\n\r\n# Use it...\r\n\r\n```js\r\n//node\r\nvar showdown = require('showdown');\r\nvar converter = new showdown.Converter();\r\nvar htmlOutput = converter.makeHtml('*Hello* __World__');\r\n```\r\n\r\nCheck our [wiki pages][wiki] for a more in-depth documentation, such as [syntax support][wiki-syntax-support], [examples][wiki-examples], [extensions][wiki-extensions], etc...\r\n\r\n\r\n[sd-logo]: https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png\r\n[releases]: https://github.com/showdownjs/showdown/releases\r\n[nuget-package]: https://www.nuget.org/packages/showdownjs/\r\n[wiki]: https://github.com/showdownjs/showdown/wiki\r\n[wiki-syntax-support]: https://github.com/showdownjs/showdown/wiki/Showdown's-Markdown-syntax\r\n[wiki-examples]: https://github.com/showdownjs/showdown/wiki/Tutorial:-Markdown-editor-using-Showdown\r\n[wiki-extensions]: https://github.com/showdownjs/showdown/wiki/extensions\r\n[changelog]: https://github.com/showdownjs/showdown/blob/master/CHANGELOG.md\r\n\r\n\r\n-----------\r\n\r\n# [Changelog][changelog]\r\n\r\n\r\n\r\n\r\n# Credits\r\nFull credit list at https://github.com/showdownjs/showdown/blob/master/CREDITS.md\r\n\r\nShowdown is powered by:<br/>\r\n[](https://www.jetbrains.com/webstorm/)\r\n\r\n\r\n\r\n",
|
||||
"body": "Showdown is a Javascript Markdown to HTML converter, based on the original works by John Gruber. Showdown can be used client side (in the browser) or server side (with NodeJs). Check a live [demo here](http://showdownjs.github.io/demo/)\r\n\r\n# Who uses Showdown\r\n - [GoogleCloudPlatform](https://github.com/GoogleCloudPlatform)\r\n - [Ghost](https://ghost.org/)\r\n - [Meteor](https://www.meteor.com/)\r\n - [Stackexchange](http://stackexchange.com/) - forked as [PageDown](https://code.google.com/p/pagedown/)\r\n - [docular](https://github.com/Vertafore/docular)\r\n - [and some others...](https://www.npmjs.com/browse/depended/showdown)\r\n\r\n\r\n# Get it...\r\n\r\n* **Download tarball:** download the latest release tarball directly from [releases][releases]\r\n* **CDN:**\r\n * rawgit: `https://cdn.rawgit.com/showdownjs/showdown/<version tag>/dist/showdown.min.js`\r\n * cdnjs: `https://cdnjs.cloudflare.com/ajax/libs/showdown/<version tag>/showdown.min.js`\r\n* **Bower:** `bower install showdown`\r\n* **npm:** `npm install showdown`\r\n* **NuGet:** `PM> Install-Package showdownjs` - [NuGet package here][nuget-package]\r\n\r\n# Use it...\r\n\r\n```js\r\n//node\r\nvar showdown = require('showdown');\r\nvar converter = new showdown.Converter();\r\nvar htmlOutput = converter.makeHtml('*Hello* __World__');\r\n```\r\n\r\nCheck our [wiki pages][wiki] for a more in-depth documentation, such as [syntax support][wiki-syntax-support], [examples][wiki-examples], [extensions][wiki-extensions], etc...\r\n\r\n\r\n[sd-logo]: https://raw.githubusercontent.com/showdownjs/logo/master/dist/logo.readme.png\r\n[releases]: https://github.com/showdownjs/showdown/releases\r\n[nuget-package]: https://www.nuget.org/packages/showdownjs/\r\n[wiki]: https://github.com/showdownjs/showdown/wiki\r\n[wiki-syntax-support]: https://github.com/showdownjs/showdown/wiki/Showdown's-Markdown-syntax\r\n[wiki-examples]: https://github.com/showdownjs/showdown/wiki/Tutorial:-Markdown-editor-using-Showdown\r\n[wiki-extensions]: https://github.com/showdownjs/showdown/wiki/extensions\r\n[changelog]: https://github.com/showdownjs/showdown/blob/master/CHANGELOG.md\r\n\r\n\r\n-----------\r\n\r\n# [Changelog][changelog]\r\n\r\n\r\n\r\n\r\n# Credits\r\nFull credit list at https://github.com/showdownjs/showdown/blob/master/CREDITS.md\r\n\r\nShowdown is powered by:<br/>\r\n[](https://www.jetbrains.com/webstorm/)\r\n\r\n\r\n\r\n",
|
||||
"google": "",
|
||||
"note": "Don't delete this file! It's used internally to help with page regeneration."
|
||||
}
|
@ -73,7 +73,11 @@ a {
|
||||
|
||||
.project-name {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.1rem; }
|
||||
margin-bottom: 0.1rem;}
|
||||
|
||||
.project-name img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 64em) {
|
||||
.project-name {
|
||||
|
Loading…
x
Reference in New Issue
Block a user