markdown-magic 4.6.2 → 4.7.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-magic",
3
- "version": "4.6.2",
3
+ "version": "4.7.0",
4
4
  "description": "Automatically update markdown files with content from external sources",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "e149a2e69992f108553ed3f84dc5cbd1db361987"
73
+ "gitHead": "da2ae8e792d5906ab7e1453d5f4d1b99ceae758e"
74
74
  }
package/src/index.js CHANGED
@@ -152,6 +152,7 @@ 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
155
156
  const pathFormatter = output.pathFormatter
156
157
 
157
158
  let applyTransformsToSource = true
@@ -429,6 +430,7 @@ async function markdownMagic(globOrOpts = {}, options = {}) {
429
430
  outputPath: newPath,
430
431
  transforms: useTransforms,
431
432
  removeComments,
433
+ forceRemoveComments,
432
434
  processedFiles
433
435
  })
434
436