fix: The blockquote content new-line letter should not be replaced. (#250)

This commit is contained in:
PonyCui
2020-08-04 10:05:24 +08:00
committed by GitHub
parent 35f090bc4a
commit 1586bc9429

View File

@ -233,7 +233,9 @@ class MarkdownBuilder implements md.NodeVisitor {
style: _isInBlockquote
? _inlines.last.style.merge(styleSheet.blockquote)
: _inlines.last.style,
text: text.text.replaceAll(RegExp(r" ?\n"), " "),
text: _isInBlockquote
? text.text
: text.text.replaceAll(RegExp(r" ?\n"), " "),
recognizer: _linkHandlers.isNotEmpty ? _linkHandlers.last : null,
),
textAlign: _textAlignForBlockTag(_currentBlockTag),