Comparing version 9.0.3 to 9.1.0
@@ -65,2 +65,3 @@ #!/usr/bin/env node | ||
let opt; | ||
let noclobber; | ||
@@ -118,2 +119,6 @@ function getArg() { | ||
break; | ||
case '-n': | ||
case '--no-clobber': | ||
noclobber = true; | ||
break; | ||
case '-h': | ||
@@ -221,2 +226,6 @@ case '--help': | ||
if (output) { | ||
if (noclobber && await fileExists(output)) { | ||
nodeProcess.stderr.write('marked: output file \'' + output + '\' already exists, disable the \'-n\' / \'--no-clobber\' flag to overwrite\n'); | ||
nodeProcess.exit(1); | ||
} | ||
return await writeFile(output, html); | ||
@@ -223,0 +232,0 @@ } |
@@ -5,3 +5,3 @@ # marked(1) -- a javascript markdown parser | ||
`marked` [`-o` <output file>] [`-i` <input file>] [`-s` <markdown string>] [`-c` <config file>] [`--help`] [`--version`] [`--tokens`] [`--pedantic`] [`--gfm`] [`--breaks`] [`--no-etc...`] [`--silent`] [filename] | ||
`marked` [`-o` <output file>] [`-i` <input file>] [`-s` <markdown string>] [`-c` <config file>] [`--help`] [`--version`] [`--tokens`] [`--no-clobber`] [`--pedantic`] [`--gfm`] [`--breaks`] [`--no-etc...`] [`--silent`] [filename] | ||
@@ -49,2 +49,5 @@ ## DESCRIPTION | ||
* -n, --no-clobber | ||
Do not overwrite `output` if it exists. | ||
* --pedantic | ||
@@ -51,0 +54,0 @@ Conform to obscure parts of markdown.pl as much as possible. |
/** | ||
* marked v9.0.3 - a markdown parser | ||
* marked v9.1.0 - a markdown parser | ||
* Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed) | ||
@@ -4,0 +4,0 @@ * https://github.com/markedjs/marked |
@@ -5,3 +5,3 @@ { | ||
"author": "Christopher Jeffrey", | ||
"version": "9.0.3", | ||
"version": "9.1.0", | ||
"type": "module", | ||
@@ -53,11 +53,11 @@ "main": "./lib/marked.cjs", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/github": "^9.0.5", | ||
"@semantic-release/github": "^9.2.1", | ||
"@semantic-release/npm": "^11.0.0", | ||
"@semantic-release/release-notes-generator": "^12.0.0", | ||
"@typescript-eslint/eslint-plugin": "^6.6.0", | ||
"@typescript-eslint/parser": "^6.6.0", | ||
"@typescript-eslint/eslint-plugin": "^6.7.3", | ||
"@typescript-eslint/parser": "^6.7.3", | ||
"cheerio": "^1.0.0-rc.12", | ||
"commonmark": "0.30.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.48.0", | ||
"eslint": "^8.50.0", | ||
"eslint-config-standard": "^17.1.0", | ||
@@ -70,3 +70,3 @@ "eslint-plugin-import": "^2.28.1", | ||
"jasmine": "^5.1.0", | ||
"markdown-it": "13.0.1", | ||
"markdown-it": "13.0.2", | ||
"marked-highlight": "^2.0.6", | ||
@@ -76,4 +76,4 @@ "marked-man": "^1.3.4", | ||
"recheck": "^4.4.5", | ||
"rollup": "^3.29.2", | ||
"semantic-release": "^22.0.0", | ||
"rollup": "^3.29.4", | ||
"semantic-release": "^22.0.5", | ||
"titleize": "^4.0.0", | ||
@@ -80,0 +80,0 @@ "ts-expect": "^1.3.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
902132
8181