We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0702ec8 commit c7f59c9Copy full SHA for c7f59c9
markdown/extensions/md_in_html.py
@@ -179,8 +179,9 @@ def handle_endtag(self, tag):
179
child.tail = None
180
state = child.attrib.get('markdown', 'off')
181
182
- # If the tail is just a new line, omit it.
183
- tail = '' if tail == '\n' else '\n' + tail
+ # Add a newline to tail if it is not just a trailing newline
+ if tail != '\n':
184
+ tail = '\n' + tail
185
186
# Process the block nested under the span appropriately
187
if state in ('span', 'block'):
0 commit comments