Force line break (<br/>) in header (<h1>) in Markdown

David Moles picture David Moles · Dec 5, 2012 · Viewed 45.7k times · Source

I'm trying to create a two-line <h1> in Markdown, something along the lines of:

<h1>Title<br/>byline</h1>

The Markdown docs say:

When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.

Unfortunately, this only seems to work for paragraphs -- if I try it with an <h1> (dots · indicate spaces):

#·Title··
byline

the trailing spaces are ignored and I just get:

<h1>Title</h1>

<p>byline</p>

Can anyone tell me a workaround for this?

P.S. I'm using vanilla Markdown 1.0.1 from the command line.

Answer

David Moles picture David Moles · Dec 5, 2012

Turns out the answer is just "use <br/>."

# Title <br/> byline

produces

<h1>Title <br/> byline</h1>

** facepalm **