6

Using pagedown/standard markdown, is there a way to mark up a postal address or email signature block so that it doesn't fold into a single line?

e.g.

First Lastname
Some Company
2041 Smile Rd
New York, NY
(999) 999-8888

If I leave it as - is like below, it folds to one line. adding an extra line feed wraps each line in paragraph tags.

How can I mark it up so that it displays like above?

GWR
  • 1,878
  • 4
  • 26
  • 44

2 Answers2

13

The Markdown Syntax Rules simply state:

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

For illustrative purposes, the following example has all spaces replaced by middle dots (·):

First·Lastname··
Some·Company··
2041·Smile·Rd··
New·York,·NY··
(999)·999-8888

Which results in the following HTML:

<p>First Lastname <br />
Some Company <br />
2041 Smile Rd <br />
New York, NY <br />
(999) 999-8888</p>

And displays as:

First Lastname
Some Company
2041 Smile Rd
New York, NY
(999) 999-8888

Waylan
  • 37,164
  • 12
  • 83
  • 109
1

I always (for this) take advantage that most Markdown parsers allow a alimitted subset of html. Including the <br> tag

So yours becomes:

First Lastname <br>
Some Company <br>
2041 Smile Rd <br>
New York, NY <br>
(999) 999-8888 <br>

Displaying as follows:

First Lastname
Some Company
2041 Smile Rd
New York, NY
(999) 999-8888

I am not aware of a pure Markdown solution, but I haven't really looked since the HTML way is so easy.

Frames Catherine White
  • 27,368
  • 21
  • 87
  • 137
  • This will work for sure, but I was hoping there was a more user-friendly solution for the non-technical users – GWR Jan 12 '16 at 12:16