Skip to content

Commit dc78ab2

Browse files
committed
Merge pull request sparksuite#134 from FabianKoestring/master
Added bower support
2 parents be1697e + 6fcc1e6 commit dc78ab2

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,29 @@ A drop-in JavaScript textarea replacement for writing beautiful and understandab
99
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.
1010

1111
## Quick start
12+
13+
### Installation
14+
15+
#### NPM
1216
SimpleMDE is available on [npm](https://www.npmjs.com/package/simplemde).
1317
```
1418
npm install simplemde --save
1519
```
16-
20+
#### jsDelivery
1721
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.*
1822

1923
```HTML
2024
<link rel="stylesheet" href="//cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
2125
<script src="//cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
2226
```
2327

28+
#### Bower
29+
SimpleMDE is also available via [Bower](http://bower.io/).
30+
```console
31+
bower install simplemde-markdown-editor
32+
```
33+
### Usage
34+
2435
And then load SimpleMDE on the first textarea on a page
2536

2637
```HTML
@@ -110,7 +121,7 @@ var simplemde = new SimpleMDE({
110121
setTimeout(function(){
111122
preview.innerHTML = customMarkdownParser(plainText);
112123
}, 250);
113-
124+
114125
return "Loading...";
115126
}
116127
renderingConfig: {

bower.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "simplemde-markdown-editor",
3+
"version": "1.7.4",
4+
"homepage": "https://github.com/NextStepWebs/simplemde-markdown-editor",
5+
"authors": [
6+
"Wes Cossik <support@nextstepwebs.com>"
7+
],
8+
"description": "A simple, beautiful, and embeddable JavaScript markdown editor.",
9+
"main": ["dist/simplemde.min.js", "dist/simplemde.min.css"],
10+
"moduleType": [
11+
"globals"
12+
],
13+
"keywords": [
14+
"wysiwyg",
15+
"markdown",
16+
"editor",
17+
"js"
18+
],
19+
"license": "MIT",
20+
"ignore": [
21+
"**/.*",
22+
"node_modules",
23+
"bower_components",
24+
"test",
25+
"tests"
26+
]
27+
}

0 commit comments

Comments
 (0)