marked 9.1.1 → 9.1.2
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/lib/marked.cjs +2 -2
- package/lib/marked.cjs.map +1 -1
- package/lib/marked.esm.js +2 -2
- package/lib/marked.esm.js.map +1 -1
- package/lib/marked.umd.js +2 -2
- package/lib/marked.umd.js.map +1 -1
- package/man/marked.1 +1 -1
- package/marked.min.js +2 -2
- package/package.json +1 -1
package/lib/marked.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* marked v9.1.
|
|
2
|
+
* marked v9.1.2 - a markdown parser
|
|
3
3
|
* Copyright (c) 2011-2023, Christopher Jeffrey. (MIT Licensed)
|
|
4
4
|
* https://github.com/markedjs/marked
|
|
5
5
|
*/
|
|
@@ -325,7 +325,7 @@ class _Tokenizer {
|
|
|
325
325
|
blockquote(src) {
|
|
326
326
|
const cap = this.rules.block.blockquote.exec(src);
|
|
327
327
|
if (cap) {
|
|
328
|
-
const text = cap[0].replace(/^ *>[ \t]?/gm, '');
|
|
328
|
+
const text = rtrim(cap[0].replace(/^ *>[ \t]?/gm, ''), '\n');
|
|
329
329
|
const top = this.lexer.state.top;
|
|
330
330
|
this.lexer.state.top = true;
|
|
331
331
|
const tokens = this.lexer.blockTokens(text);
|