123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <!DOCTYPE html>
- <html lang="en-us">
- <head>
- <meta charset="UTF-8">
- <title>JavaScript Markdown Editor - SimpleMDE</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='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">
- <link rel="canonical" href="https://simplemde.com/" />
-
- <script>
- if(window.location.href.indexOf("sparksuite.github.io") !== -1) {
- window.location.href = "https://simplemde.com/";
- }
-
- if(window.location.protocol != "https:")
- window.location.href = "https:"+window.location.href.substring(window.location.protocol.length);
- </script>
-
- <style>
- .editor-preview h1,
- .editor-preview h2,
- .editor-preview h3,
- .editor-preview h4,
- .editor-preview h5{
- margin-bottom:10px;
- }
-
- .editor-preview h1{
- border-bottom:1px solid #ddd;
- }
-
- .editor-preview h1{
- border-bottom:1px solid #eee;
- }
- </style>
- </head>
- <body>
- <section class="page-header">
- <h1 class="project-name">SimpleMDE Markdown Editor</h1>
- <h2 class="project-tagline">SimpleMDE is a simple, embeddable, and beautiful JS markdown editor</h2>
- <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>
- </section>
- <section class="main-content">
- <h1><a id="h1_demo1" class="anchor" href="#h1_demo1" aria-hidden="true"><span class="octicon octicon-link"></span></a>Demo</h1>
- <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`.
- ## Lists
- Unordered lists can be started using the toolbar or by typing `* `, `- `, or `+ `. Ordered lists can be started by typing `1. `.
- #### Unordered
- * Lists are a piece of cake
- * They even auto continue as you type
- * A double enter will end them
- * Tabs and shift-tabs work too
- #### Ordered
- 1. Numbered lists...
- 2. ...work too!
- ## What about images?
- ![Yes](https://i.imgur.com/sZlktY7.png)</textarea>
- <h1><a id="h1_demo2" class="anchor" href="#h1_demo2" aria-hidden="true"><span class="octicon octicon-link"></span></a>Autosaving</h1>
- <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>
- <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>
- <textarea id="demo3"># This one is bare
- 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>
- <footer class="site-footer">
- <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>
- </footer>
- </section>
- <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>
-
- <script>
- new SimpleMDE({
- element: document.getElementById("demo1"),
- spellChecker: false,
- });
-
- new SimpleMDE({
- element: document.getElementById("demo2"),
- spellChecker: false,
- autosave: {
- enabled: true,
- unique_id: "demo2",
- },
- });
-
- new SimpleMDE({
- element: document.getElementById("demo3"),
- status: false,
- toolbar: false,
- });
- </script>
-
- <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>
- </body>
- </html>
|