forked from IonicaBizau/medium-editor-markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
126 lines (126 loc) · 3.73 KB
/
package.json
File metadata and controls
126 lines (126 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "medium-editor-markdown",
"version": "2.4.2",
"description": "A Medium Editor extension to add markdown support.",
"main": "src/medium-editor-md.js",
"directories": {
"example": "example"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Ionică Bizău <bizauionica@gmail.com> (http://ionicabizau.net)",
"contributors": [
"Nate Mielnik <nathan@outlook.com>",
"@prevuelta (http://www.pablorevuelta.com/)",
"okmttdhr (http://okmttdhr.github.io/)"
],
"license": "MIT",
"dependencies": {
"barbe": "^2.0.0",
"to-markdown": "^2.0.1",
"uglify-js": "^2.5.0"
},
"devDependencies": {},
"repository": {
"type": "git",
"url": "https://github.com/IonicaBizau/medium-editor-markdown.git"
},
"bugs": {
"url": "https://github.com/IonicaBizau/medium-editor-markdown/issues"
},
"homepage": "https://github.com/IonicaBizau/medium-editor-markdown",
"keywords": [
"medium",
"editor",
"markdown"
],
"blah": {
"h_img": "http://i.imgur.com/xb6JPkv.png",
"title": "Medium Editor Markdown",
"description": "[Click here](https://github.com/daviferreira/medium-editor) to see the Medium Editor project.",
"show_installation": false,
"installation": [
{
"h2": "Usage"
},
{
"p": "The available scripts are:"
},
{
"ul": [
"me-markdown.no-deps.js",
"me-markdown.no-deps.min.js",
"me-markdown.standalone.js",
"me-markdown.standalone.min.js"
]
},
{
"p": [
"The `*.standalone.*` scripts contain all the dependencies included there.",
"The `*.no-deps.*` scripts contain only the extension code. You will have to include manually [`to-markdown.js`](https://github.com/domchristie/to-markdown) on the page, before including the markdown extension.",
"The `*.min.*` scripts are minified."
]
},
{
"h2": "Demo"
},
{
"p": [
"[Click here](http://ionicabizau.github.io/medium-editor-markdown) for a live demo.",
"[](http://ionicabizau.github.io/medium-editor-markdown)"
]
},
{
"h2": "Example"
},
{
"code": {
"language": "html",
"content": [
"<div class=\"editor\"></div>",
"<pre class=\"markdown\"></pre>",
"<script src=\"path/to/medium-editor.js\"></script>",
"<script src=\"path/to/me-markdown.standalone.min.js\"></script>",
"<script>",
" (function () {",
" var markDownEl = document.querySelector(\".markdown\");",
" new MediumEditor(document.querySelector(\".editor\"), {",
" extensions: {",
" markdown: new MeMarkdown(function (md) {",
" markDownEl.textContent = md;",
" })",
" }",
" });",
" })();",
"</script>"
]
}
},
{
"h2": "Building"
},
{
"p": "To rebuild the dist files, run `./build`."
}
],
"thanks": {
"ul": [
"[**@daviferreira**](https://github.com/daviferreira/) who created the [Medium Editor library](https://github.com/daviferreira/medium-editor).",
"[**@domchristie**](https://github.com/domchristie/) for creating [to-markdown](https://github.com/domchristie/to-markdown)."
]
}
},
"files": [
"bin/",
"app/",
"lib/",
"dist/",
"src/",
"resources/",
"menu/",
"scripts/",
"cli.js",
"index.js"
]
}