Skip to content

Angle-bracketed URL right after a linebreak is rendered without the linebreak #461

@brlin-tw

Description

@brlin-tw

Input

First line  
<https://example.com/second-line-url>  
Third line <https://example.com/with-an-url>

Note: 2 trailing space characters after First line and /second-line-url>

Current Output

<p>First line
<a href="https://example.com/second-line-url">https://example.com/second-line-url</a><br />
Third line <a href="https://example.com/with-an-url">https://example.com/with-an-url</a></p>

Expected Output

<p>First line<br />
<a href="https://example.com/second-line-url">https://example.com/second-line-url</a><br />
Third line <a href="https://example.com/with-an-url">https://example.com/with-an-url</a></p>

Commandline (in GNU Bash)

kramdown\
	--input kramdown\
	--output html\
	<kramdown-issue-461-reproduction-sample.markdown\
	>kramdown-issue-461-reproduction-sample.html

Additional Info

Here's the output when --input is set to GFM

<p>First line<br />
<a href="https://example.com/second-line-url">https://example.com/second-line-url</a>  <br />
Third line <a href="https://example.com/with-an-url">https://example.com/with-an-url</a></p>

Notice the re-appeared expected line break at line 1 and redundant 2 spaces before the line break of line 2

Kramdown

1.15.0 from RubyGems

Ruby

2.3.1p112 (2016-04-26) from Ubuntu 16.04 archive

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions