No way to indent text?

Michel Fortin michel.fortin at
Wed Aug 5 08:02:31 EDT 2009

Le 2009-08-05 à 7:42, Tim Visher a écrit :

> As others said, this is non-standard for (X)HTML except for certain

> elements like `blockquote`. You could use inline styles but then

> you'd have to drop back to straight (X)HTML rather than the simpler

> Markdown syntax.


> For instance, were you to desire to indent a paragraph, markdown will

> correctly allow you to do the following:


> <p style="margin-left: 2em;">Lorem ipsum dolor sit amet,

> consectetur

> adipisicing elit, sed do eiusmod tempor incididunt ut labore et

> dolore magna

> aliqua. Ut enim ad minim veniam, quis nostrud exercitation

> ullamco laboris

> nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in

> reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla

> pariatur. Excepteur sint occaecat cupidatat non proident, sunt in

> culpa qui

> officia deserunt mollit anim id est laborum.</p>


> I think that's your only option directly within Markdown.

Indeed it is.

The big drawback here is that Markdown formatting isn't applied in an
HTML block like the example above. Some parsers, like PHP Markdown
Extra, allow you to activate markdown formatting within the paragraph
by adding a `markdown="1"` attribute to the `p` tag.

Michel Fortin
michel.fortin at

More information about the Markdown-Discuss mailing list