mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-05-18 05:36:38 +02:00
Merge pull request #137 from NextStepWebs/revert-134-master
Revert "Added bower support"
This commit is contained in:
commit
7bc9d9b0ff
15
README.md
15
README.md
|
@ -9,15 +9,11 @@ A drop-in JavaScript textarea replacement for writing beautiful and understandab
|
|||
WYSIWYG editors that produce HTML are often complex and buggy. Markdown solves this problem in many ways, plus Markdown can be rendered natively on more platforms than HTML. However, Markdown is not a syntax that an average user will be familiar with, nor is it visually clear while editing. In otherwords, for an unfamiliar user, the syntax they write will make little sense until they click the preview button. SimpleMDE has been designed to bridge this gap for non-technical users who are less familiar with or just learning Markdown syntax.
|
||||
|
||||
## Quick start
|
||||
|
||||
### Installation
|
||||
|
||||
#### NPM
|
||||
SimpleMDE is available on [npm](https://www.npmjs.com/package/simplemde).
|
||||
```
|
||||
npm install simplemde --save
|
||||
```
|
||||
#### jsDelivery
|
||||
|
||||
SimpleMDE is also available on [jsDelivr](http://www.jsdelivr.com/#!simplemde). *Please note, jsDelivr may take a few days to update to the latest release.*
|
||||
|
||||
```HTML
|
||||
|
@ -25,13 +21,6 @@ SimpleMDE is also available on [jsDelivr](http://www.jsdelivr.com/#!simplemde).
|
|||
<script src="//cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
|
||||
```
|
||||
|
||||
#### Bower
|
||||
SimpleMDE is also available via [Bower](http://bower.io/).
|
||||
```console
|
||||
bower install simplemde-markdown-editor
|
||||
```
|
||||
### Usage
|
||||
|
||||
And then load SimpleMDE on the first textarea on a page
|
||||
|
||||
```HTML
|
||||
|
@ -121,7 +110,7 @@ var simplemde = new SimpleMDE({
|
|||
setTimeout(function(){
|
||||
preview.innerHTML = customMarkdownParser(plainText);
|
||||
}, 250);
|
||||
|
||||
|
||||
return "Loading...";
|
||||
}
|
||||
renderingConfig: {
|
||||
|
|
27
bower.json
27
bower.json
|
@ -1,27 +0,0 @@
|
|||
{
|
||||
"name": "simplemde-markdown-editor",
|
||||
"version": "1.7.4",
|
||||
"homepage": "https://github.com/NextStepWebs/simplemde-markdown-editor",
|
||||
"authors": [
|
||||
"Wes Cossik <support@nextstepwebs.com>"
|
||||
],
|
||||
"description": "A simple, beautiful, and embeddable JavaScript markdown editor.",
|
||||
"main": ["dist/simplemde.min.js", "dist/simplemde.min.css"],
|
||||
"moduleType": [
|
||||
"globals"
|
||||
],
|
||||
"keywords": [
|
||||
"wysiwyg",
|
||||
"markdown",
|
||||
"editor",
|
||||
"js"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue