mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
add spaces at end of lines which only contain blockquote markers
This commit is contained in:
parent
a55c511775
commit
ea96900707
1 changed files with 3 additions and 0 deletions
|
@ -187,6 +187,9 @@ function wrapLines(textarea, options, eachLine = true) {
|
|||
? prefix + text.trim() + suffix
|
||||
: text.split(/\n/g).map(line => prefix + line.trim() + suffix).join('\n');
|
||||
|
||||
// Force a space at the end of lines with only blockquote markers
|
||||
newText = newText.replace(/^((?:>\s+)*)>$/gm, '$1> ')
|
||||
|
||||
return { newText, caretOffset: emptyText ? prefix.length : newText.length };
|
||||
}, eachLine);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue