markdown-magic 4.6.2 → 4.8.0
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/package.json +4 -4
- package/src/index.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-magic",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Automatically update markdown files with content from external sources",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@davidwells/md-utils": "0.0.53",
|
|
44
44
|
"color-convert": "^2.0.1",
|
|
45
45
|
"comment-block-parser": "1.5.4",
|
|
46
|
-
"comment-block-replacer": "0.1.
|
|
47
|
-
"comment-block-transformer": "0.
|
|
46
|
+
"comment-block-replacer": "0.1.18",
|
|
47
|
+
"comment-block-transformer": "0.7.0",
|
|
48
48
|
"globrex": "^0.1.2",
|
|
49
49
|
"gray-matter": "^4.0.3",
|
|
50
50
|
"is-glob": "^4.0.3",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "37ed26b98df488f005d9ef91ecd8cd9649c5c067"
|
|
74
74
|
}
|
package/src/index.js
CHANGED
|
@@ -152,6 +152,8 @@ async function markdownMagic(globOrOpts = {}, options = {}) {
|
|
|
152
152
|
// @ts-ignore
|
|
153
153
|
const outputDir = output.directory || opts.outputDir
|
|
154
154
|
const removeComments = output.removeComments || false
|
|
155
|
+
const forceRemoveComments = output.forceRemoveComments || false
|
|
156
|
+
const normalizeBlankLines = output.normalizeBlankLines || false
|
|
155
157
|
const pathFormatter = output.pathFormatter
|
|
156
158
|
|
|
157
159
|
let applyTransformsToSource = true
|
|
@@ -429,6 +431,8 @@ async function markdownMagic(globOrOpts = {}, options = {}) {
|
|
|
429
431
|
outputPath: newPath,
|
|
430
432
|
transforms: useTransforms,
|
|
431
433
|
removeComments,
|
|
434
|
+
forceRemoveComments,
|
|
435
|
+
normalizeBlankLines,
|
|
432
436
|
processedFiles
|
|
433
437
|
})
|
|
434
438
|
|