markdown-up 1.0.6 → 1.0.10
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 +4 -4
- package/src/markdown-up/markdownUp.js +6 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
download the markdown-up application stub to the directory containing your Markdown files:
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
curl -O https://craigahobbs.github.io/markdown-up/index.html
|
|
12
|
+
curl -O https://craigahobbs.github.io/markdown-up/static/index.html
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
To host your Markdown files locally, start a local static web server:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "markdown-up",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.10",
|
|
5
5
|
"description": "JavaScript Markdown viewer application",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"markdown",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"element-model": "~1.0",
|
|
27
|
-
"markdown-model": "~1.
|
|
27
|
+
"markdown-model": "~1.1",
|
|
28
28
|
"schema-markdown": "~1.0",
|
|
29
29
|
"schema-markdown-doc": "~1.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"ava": "4.0.0-alpha.2",
|
|
33
|
-
"c8": "7.
|
|
33
|
+
"c8": "7.9.0",
|
|
34
34
|
"eslint": "7.32.0",
|
|
35
35
|
"jsdoc": "3.6.7",
|
|
36
|
-
"
|
|
36
|
+
"jsdom": "14.1.0"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -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,11 @@ 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,
|
|
120
|
+
const result = {'elements': markdownElements(markdownModel, {
|
|
121
|
+
'hashPrefix': smd.encodeQueryString(this.params),
|
|
122
|
+
'headerIds': true,
|
|
123
|
+
url
|
|
124
|
+
})};
|
|
121
125
|
if (markdownTitle !== null) {
|
|
122
126
|
result.title = markdownTitle;
|
|
123
127
|
}
|