marked 9.0.1 → 9.0.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/bin/main.js CHANGED
@@ -32,7 +32,7 @@ export async function main(nodeProcess) {
32
32
  };
33
33
 
34
34
  const __dirname = dirname(fileURLToPath(import.meta.url));
35
- const helpText = await readFile(resolve(__dirname, '../man/marked.1.txt'), 'utf8');
35
+ const helpText = await readFile(resolve(__dirname, '../man/marked.1.md'), 'utf8');
36
36
 
37
37
  // eslint-disable-next-line promise/param-names
38
38
  await new Promise(res => {
package/lib/marked.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * marked v9.0.1 - a markdown parser
2
+ * marked v9.0.3 - a markdown parser
3
3
  * Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
4
4
  * https://github.com/markedjs/marked
5
5
  */
@@ -751,7 +751,7 @@ class _Tokenizer {
751
751
  const endReg = match[0][0] === '*' ? this.rules.inline.emStrong.rDelimAst : this.rules.inline.emStrong.rDelimUnd;
752
752
  endReg.lastIndex = 0;
753
753
  // Clip maskedSrc to same section of string as src (move to lexer?)
754
- maskedSrc = maskedSrc.slice(-1 * src.length + lLength);
754
+ maskedSrc = maskedSrc.slice(-1 * src.length + match[0].length - 1);
755
755
  while ((match = endReg.exec(maskedSrc)) != null) {
756
756
  rDelim = match[1] || match[2] || match[3] || match[4] || match[5] || match[6];
757
757
  if (!rDelim)