Multiline link in markdown

With a backslash character, a link with multiple lines is possible in markdown.

March 2, 2026

You can have markdown links where the content is spanning multiple lines:

[Line 1
Line 2
Line 3](/page.html)
<p><a href="/page.html">Line 1
Line 2
Line 3</a></p>
https://example.com

But if there is a blank line between the content, it is not recognized as a link anymore:

[Line 1

Line 2](/page.html)
<p>[Line 1</p>
<p>Line 2](/page.html)</p>
https://example.com

[Line 1

Line 2](/page.html)

The fix: If we place a backslash character (\) — which is not rendered — the content is connected again:

[Line 1
\
Line 2](/page.html)
<p><a href="/page.html">Line 1
<br />
Line 2</a></p>
https://example.com

A more complex example:

[**Title**
\
_Subtitle_
\
\
Lorem Ipsum is a dummy text
of the printing and
typesetting industry.](/page.html)
<p><a href="/page.html"><strong>Title</strong>
<br />
<em>Subtitle</em>
<br />
<br />
Lorem Ipsum is a dummy text
of the printing and
typesetting industry.</a></p>