simplemde-markdown-editor/index.html

125 lines
4.5 KiB
HTML
Raw Permalink Normal View History

2015-06-19 22:18:14 +02:00
<!DOCTYPE html>
<html lang="en-us">
<head>
2015-06-22 22:24:08 +02:00
<meta charset="UTF-8">
2016-02-25 23:55:14 +01:00
<title>JavaScript Markdown Editor - SimpleMDE</title>
2015-06-22 22:24:08 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
2015-07-21 17:04:32 +02:00
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
2015-06-22 22:24:08 +02:00
<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">
2016-01-27 18:23:39 +01:00
<link rel="canonical" href="https://simplemde.com/" />
<script>
2017-05-16 21:07:58 +02:00
if(window.location.href.indexOf("sparksuite.github.io") !== -1) {
2016-01-27 18:23:39 +01:00
window.location.href = "https://simplemde.com/";
}
2016-01-27 18:24:37 +01:00
if(window.location.protocol != "https:")
window.location.href = "https:"+window.location.href.substring(window.location.protocol.length);
</script>
2015-06-22 23:14:03 +02:00
<style>
.editor-preview h1,
.editor-preview h2,
.editor-preview h3,
.editor-preview h4,
2015-06-22 23:15:05 +02:00
.editor-preview h5{
2015-06-22 23:14:03 +02:00
margin-bottom:10px;
}
2015-06-22 23:15:05 +02:00
.editor-preview h1{
2015-06-22 23:14:03 +02:00
border-bottom:1px solid #ddd;
}
2015-06-22 23:17:05 +02:00
.editor-preview h1{
border-bottom:1px solid #eee;
}
2015-06-22 23:14:03 +02:00
</style>
2015-06-19 22:18:14 +02:00
</head>
<body>
2015-06-22 22:24:08 +02:00
<section class="page-header">
<h1 class="project-name">SimpleMDE Markdown Editor</h1>
2016-02-25 23:56:05 +01:00
<h2 class="project-tagline">SimpleMDE is a simple, embeddable, and beautiful JS markdown editor</h2>
2017-05-16 21:07:58 +02:00
<a href="https://github.com/sparksuite/simplemde-markdown-editor" class="btn">View on GitHub</a>
<a href="https://github.com/sparksuite/simplemde-markdown-editor/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/sparksuite/simplemde-markdown-editor/tarball/master" class="btn">Download .tar.gz</a>
2015-06-22 22:24:08 +02:00
</section>
2015-06-19 22:18:14 +02:00
2015-06-22 22:24:08 +02:00
<section class="main-content">
2015-06-27 21:45:33 +02:00
<h1><a id="h1_demo1" class="anchor" href="#h1_demo1" aria-hidden="true"><span class="octicon octicon-link"></span></a>Demo</h1>
2015-06-19 22:18:14 +02:00
2015-06-27 21:40:19 +02:00
<textarea id="demo1"># Intro
Go ahead, play around with the editor! Be sure to check out **bold** and *italic* styling, or even [links](https://google.com). You can type the Markdown syntax, use the toolbar, or use shortcuts like `cmd-b` or `ctrl-b`.
2015-06-22 22:41:34 +02:00
## Lists
2015-06-22 23:14:03 +02:00
Unordered lists can be started using the toolbar or by typing `* `, `- `, or `+ `. Ordered lists can be started by typing `1. `.
2015-06-22 23:17:55 +02:00
#### Unordered
2015-06-27 21:47:13 +02:00
* Lists are a piece of cake
2015-06-22 22:41:34 +02:00
* They even auto continue as you type
2015-06-22 23:14:03 +02:00
* A double enter will end them
2015-06-27 21:47:13 +02:00
* Tabs and shift-tabs work too
2015-06-22 23:14:03 +02:00
2015-06-22 23:17:55 +02:00
#### Ordered
2015-06-22 22:41:34 +02:00
1. Numbered lists...
2. ...work too!
## What about images?
![Yes](https://i.imgur.com/sZlktY7.png)</textarea>
2015-06-19 22:18:14 +02:00
2015-06-27 21:45:33 +02:00
<h1><a id="h1_demo2" class="anchor" href="#h1_demo2" aria-hidden="true"><span class="octicon octicon-link"></span></a>Autosaving</h1>
2015-06-27 21:40:19 +02:00
<textarea id="demo2"># This one autosaves!
By default, it saves every 10 seconds, but this can be changed. When this textarea is included in a form, it will automatically forget the saved value when the form is submitted.</textarea>
2015-06-27 21:45:33 +02:00
<h1><a id="h1_demo3" class="anchor" href="#h1_demo3" aria-hidden="true"><span class="octicon octicon-link"></span></a>Hidden toolbar and status bar</h1>
2015-06-27 21:40:19 +02:00
<textarea id="demo3"># This one is bare
2015-07-21 06:37:33 +02:00
You can also choose to hide the statusbar and/or toolbar for a simple and clean appearance. This one also checks for misspelled words as you type!</textarea>
2015-06-27 21:40:19 +02:00
2015-06-22 22:24:08 +02:00
<footer class="site-footer">
2017-05-16 21:07:58 +02:00
<span class="site-footer-credits"><a href="https://github.com/sparksuite/simplemde-markdown-editor">SimpleMDE Markdown Editor</a> is created and maintained by <a href="https://github.com/sparksuite">Sparksuite</a></span>
2015-06-22 22:24:08 +02:00
</footer>
2015-06-19 22:18:14 +02:00
2015-06-22 22:24:08 +02:00
</section>
2015-06-19 22:18:14 +02:00
2015-07-21 17:04:32 +02:00
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
2015-06-22 22:24:08 +02:00
<script>
new SimpleMDE({
2015-06-27 21:41:35 +02:00
element: document.getElementById("demo1"),
2015-07-21 06:37:33 +02:00
spellChecker: false,
2015-06-27 21:40:19 +02:00
});
new SimpleMDE({
2015-06-27 21:41:35 +02:00
element: document.getElementById("demo2"),
2015-07-21 06:37:33 +02:00
spellChecker: false,
autosave: {
enabled: true,
2015-06-27 21:40:19 +02:00
unique_id: "demo2",
},
});
2015-06-27 21:40:19 +02:00
new SimpleMDE({
2015-06-27 21:41:35 +02:00
element: document.getElementById("demo3"),
2015-06-27 21:40:19 +02:00
status: false,
toolbar: false,
});
2015-06-22 22:24:08 +02:00
</script>
2015-06-23 02:06:34 +02:00
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-5808021-18', 'auto');
ga('send', 'pageview');
</script>
2015-06-19 22:18:14 +02:00
</body>
</html>