Markup for email or postal address in Markdown

Using pagingown / standard markdown, is there a way to mark the email address or email signature block so that it doesn't stack on one line?

eg.

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

If I leave it as - as shown below, it adds up on one line. adding an extra line-line wraps each line in paragraph tags.

How can I mark it so that it displays as above?

+5
source share
2 answers

Markdown syntax rules just specify:

If you want to insert the <br /> break tag with Markdown, you end the line with two or more spaces, then type return.

For illustrative purposes, in the following example, all spaces are replaced with midpoints ( ):

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

This 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 displayed as:

First name
Some company
2041 Smile Rd
New York NY
(999) 999-8888

+7
source

I always (for this) get the advantage that most marker parsers allow a dedicated subset of html. Including tag <br>

So yours will be:

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

It is displayed as follows:

First name
Some company
2041 Smile Rd
New York NY
(999) 999-8888

I am not aware of the pure Markdown solution, but I really did not look, since the HTML way is so simple.

+1
source

Source: https://habr.com/ru/post/1240398/


All Articles