In Markdown write poems in fenced blocks???

halloleo's Avatar

halloleo

21 Dec, 2015 08:59 PM

I want to find a good way to write poems with lots of soft line breaks in markdown.

I tried fenced bocks with the class poetry, but this doesn't work when I need emphasis in a poem, because fenced blocks are meant for code and don't allow the use of Markdown inside the block. :-(

At the moment I Use normal text with th two spaces at the end, but here I cannot force left indentation of indivual lines.

So what can I do to get both? What can I do?

  1. Support Staff 1 Posted by Brett on 22 Dec, 2015 01:04 AM

    Brett's Avatar

    Markdown really isn't built for this. Either a block is code, or it's a
    paragraph. You could do some styling on blockquote tags instead, if you
    wanted to use ">" before each line. If you set the whitespace:pre
    property in the CSS, it should still preserve indentation. Haven't
    tested that, though.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac