waylan/Python-Markdown — Issue #83: Feature request: Poetry extension
Author: mitya57
Created: 2012-03-09 10:46:28+00:00
State: open

There should be a way to insert blocks of text where the newlines will be converted to `
` tag (or `
` for xhtml).

Example:

~~~
Line 1
Line 2

Line 3
Line 4
~~~

should result in

Line 1

Line 2

Line 3

Line 4

This is useful for poetry, for example; I guess this should be an extension rather than a core functionality. Of course, other formatting in such blocks should be possible as well, so code blocks can't be used for such purpose.

`~~~` is just an example marker, I think it's already used for something.