Skip to content

Commit

Permalink
Add block_quote prefix on empty lines too
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 authored Aug 15, 2024
1 parent 231df01 commit fb19c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mistune/renderers/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def block_code(self, token: Dict[str, Any], state: BlockState) -> str:
return marker2 + info + "\n" + code + marker2 + "\n\n"

def block_quote(self, token: Dict[str, Any], state: BlockState) -> str:
text = indent(self.render_children(token, state), '> ')
text = indent(self.render_children(token, state), '> ', lambda _: True)
return text + '\n\n'

def block_html(self, token: Dict[str, Any], state: BlockState) -> str:
Expand Down

0 comments on commit fb19c5a

Please sign in to comment.