Change blockquote markdown to require a space

This commit is contained in:
Cadence Ember 2024-09-01 00:31:56 +12:00 committed by Cadence Ember
parent 5c9ee1a988
commit 7a23fe10ed

View file

@ -261,7 +261,7 @@ const CodeBlockRule: BlockMDRule = {
const BLOCKQUOTE_MD_1 = '>'; const BLOCKQUOTE_MD_1 = '>';
const QUOTE_LINE_PREFIX = /^> */; const QUOTE_LINE_PREFIX = /^> */;
const BLOCKQUOTE_TRAILING_NEWLINE = /\n$/; const BLOCKQUOTE_TRAILING_NEWLINE = /\n$/;
const BLOCKQUOTE_REG_1 = /(^>.*\n?)+/m; const BLOCKQUOTE_REG_1 = /(^>(?: .*\n?| *\n))+/m;
const BlockQuoteRule: BlockMDRule = { const BlockQuoteRule: BlockMDRule = {
match: (text) => text.match(BLOCKQUOTE_REG_1), match: (text) => text.match(BLOCKQUOTE_REG_1),
html: (match, parseInline) => { html: (match, parseInline) => {