marked 15.0.11 → 16.0.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/README.md CHANGED
@@ -83,7 +83,7 @@ $ marked --help
83
83
  </head>
84
84
  <body>
85
85
  <div id="content"></div>
86
- <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
86
+ <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
87
87
  <script>
88
88
  document.getElementById('content').innerHTML =
89
89
  marked.parse('# Marked in the browser\n\nRendered by **marked**.');
package/bin/main.js CHANGED
@@ -177,7 +177,7 @@ export async function main(nodeProcess) {
177
177
  try {
178
178
  // try require for json
179
179
  markedConfig = require(configFile);
180
- } catch (err) {
180
+ } catch(err) {
181
181
  if (err.code !== 'ERR_REQUIRE_ESM') {
182
182
  throw err;
183
183
  }
@@ -271,7 +271,7 @@ export async function main(nodeProcess) {
271
271
  try {
272
272
  await start(nodeProcess.argv.slice());
273
273
  nodeProcess.exit(0);
274
- } catch (err) {
274
+ } catch(err) {
275
275
  if (err.code === 'ENOENT') {
276
276
  nodeProcess.stderr.write('marked: ' + err.path + ': No such file or directory');
277
277
  } else {