highmark-cli 0.0.69 → 0.0.70
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/bin/constants.js +2 -0
- package/bin/importer.js +1 -3
- package/bin/operation/inputFileToHTML.js +3 -1
- package/package.json +2 -2
package/bin/constants.js
CHANGED
package/bin/importer.js
CHANGED
|
@@ -12,10 +12,8 @@ function importer(filePath, indent, context) {
|
|
|
12
12
|
const tokens = tokensFromContent(content),
|
|
13
13
|
node = nodeFromTokens(tokens);
|
|
14
14
|
|
|
15
|
-
let { indent } = context;
|
|
16
|
-
|
|
17
15
|
if (node !== null) {
|
|
18
|
-
html = node.asHTML({
|
|
16
|
+
html = node.asHTML(indent, { ///
|
|
19
17
|
tokens,
|
|
20
18
|
importer
|
|
21
19
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const importer = require("../importer");
|
|
4
4
|
|
|
5
|
+
const { DOUBLE_SPACE } = require("../constants");
|
|
5
6
|
const { nodeFromTokens, tokensFromContent } = require("../utilities/markdown");
|
|
6
7
|
|
|
7
8
|
function inputFileHTMLOperation(proceed, abort, context) {
|
|
@@ -16,7 +17,8 @@ function inputFileHTMLOperation(proceed, abort, context) {
|
|
|
16
17
|
return;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
+
const indent = DOUBLE_SPACE, ///
|
|
21
|
+
html = node.asHTML(indent, { ///
|
|
20
22
|
tokens,
|
|
21
23
|
importer
|
|
22
24
|
}),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "highmark-cli",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.70",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/highmark-cli",
|
|
7
7
|
"description": "Extensible, styleable Markdown.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"argumentative": "^2.0.28",
|
|
14
14
|
"highmark-markdown": "^0.0.117",
|
|
15
|
-
"highmark-markdown-style": "^0.0.
|
|
15
|
+
"highmark-markdown-style": "^0.0.157",
|
|
16
16
|
"necessary": "^13.4.2"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {},
|