Python-Markdown / markdown

A Python implementation of John Gruber’s Markdown with Extension support.
https://python-markdown.github.io/
BSD 3-Clause "New" or "Revised" License
3.74k stars 858 forks source link

strange convertion of EOLs near URL #1302

Closed Alexey-T closed 1 year ago

Alexey-T commented 1 year ago

from markdown module:

__version_info__ = (3, 4, 1, 'final', 0)

I see that EOLs near URL is converted to EOL in HTML - see source MD on the right, result on the left.

md-er

which is wrong IMO, I must get URL in HTML on the same line. no?

@veksha may be interested.

Code of CudaText plugin: https://github.com/CudaText-addons/cuda_markdown_preview

I use Ubuntu 20.

veksha commented 1 year ago

@Alexey-T , please provide this file. maybe two spaces are there.

Alexey-T commented 1 year ago

File index.zip

veksha commented 1 year ago

even without urls <br> is added:

image

Alexey-T commented 1 year ago

if it is by design, close the issue.

veksha commented 1 year ago

works ok if I remove GithubFlavoredMarkdownExtension! (or use PartialGithubFlavoredMarkdownExtension)

facelessuser commented 1 year ago

GFM appears to be the extension adding that behavior, which isn't a surprise as GFM has the feature of turning new lines to breaks.