markdown-up 1.0.3 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +7 -4
- package/src/markdown-up/markdownUp.js +2 -2
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ To view local Markdown files using markdown-up, try the
|
|
|
39
39
|
|
|
40
40
|
## Development
|
|
41
41
|
|
|
42
|
-
This project is developed using [
|
|
42
|
+
This project is developed using [javascript-build](https://github.com/craigahobbs/javascript-build#readme). It was started
|
|
43
43
|
using [javascript-template](https://github.com/craigahobbs/javascript-template#readme) as follows:
|
|
44
44
|
|
|
45
45
|
```
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "markdown-up",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "JavaScript Markdown viewer application",
|
|
6
|
-
"keywords":
|
|
6
|
+
"keywords": [
|
|
7
|
+
"markdown",
|
|
8
|
+
"viewer"
|
|
9
|
+
],
|
|
7
10
|
"homepage": "https://github.com/craigahobbs/markdown-up#readme",
|
|
8
11
|
"bugs": "https://github.com/craigahobbs/markdown-up/issues",
|
|
9
12
|
"license": "MIT",
|
|
@@ -21,9 +24,9 @@
|
|
|
21
24
|
},
|
|
22
25
|
"dependencies": {
|
|
23
26
|
"element-model": "~1.0",
|
|
24
|
-
"markdown-model": "~
|
|
27
|
+
"markdown-model": "~1.1",
|
|
25
28
|
"schema-markdown": "~1.0",
|
|
26
|
-
"schema-markdown-doc": "~0
|
|
29
|
+
"schema-markdown-doc": "~1.0"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
29
32
|
"ava": "4.0.0-alpha.2",
|
|
@@ -22,7 +22,7 @@ struct MarkdownUp
|
|
|
22
22
|
union Command
|
|
23
23
|
|
|
24
24
|
# Render the application's hash parameter documentation
|
|
25
|
-
int(==1) help
|
|
25
|
+
int(== 1) help
|
|
26
26
|
`).types);
|
|
27
27
|
|
|
28
28
|
|
|
@@ -117,7 +117,7 @@ export class MarkdownUp {
|
|
|
117
117
|
// Render the text as Markdown
|
|
118
118
|
const markdownModel = parseMarkdown(text);
|
|
119
119
|
const markdownTitle = getMarkdownTitle(markdownModel);
|
|
120
|
-
const result = {'elements': markdownElements(markdownModel, url)};
|
|
120
|
+
const result = {'elements': markdownElements(markdownModel, {url})};
|
|
121
121
|
if (markdownTitle !== null) {
|
|
122
122
|
result.title = markdownTitle;
|
|
123
123
|
}
|