markdown-magic 3.6.2 → 3.6.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-magic",
3
- "version": "3.6.2",
3
+ "version": "3.6.3",
4
4
  "description": "Automatically update markdown files with content from external sources",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -47,12 +47,20 @@ function install(api) {
47
47
  }
48
48
  header = `${header}\n\n`
49
49
 
50
+ if (options.header === false) {
51
+ header = ''
52
+ }
53
+
50
54
  let body = `Install the \`${packageName}\` cli using your favorite package manager.`
51
55
  if (options.body) {
52
56
  body = (options.body.startsWith('\n')) ? options.body : `\n${options.body}`
53
57
  }
54
58
  body = `${body}\n`
55
59
 
60
+ if (options.body === false) {
61
+ body = ''
62
+ }
63
+
56
64
  if (!packageName) {
57
65
  return 'Error: No package name provided'
58
66
  }