How do I format poetry? Discussion

I follow the recommendations of the HTML spec’s editor to use paragraphs for stanzas and line breaks for lines. (They also suggest using the HTML preformatted text element pre for poems that use creative indentation or spacing; the default rendering for that uses a monospace font, which you may want to change.)

By default Obsidian treats a newline as a line break, but that’s not standard Markdown so may not be treated correctly by other Markdown apps. The official Markdown way to mark a line break, which should work in any Markdown app, is to put 2 or more spaces at the end (Obsidian’s optional “Strict line breaks” setting enforces this). I do this, but it’s obviously a bad syntax because it’s invisible. CommonMark, the standardized Markdown variant that Obsidian’s is ultimately based on, also allows line breaks to be marked with a backslash at the end of the line. That’s less widely compatible but I’d guess still pretty commonly supported.

It may be difficult or impossible to style lines separately (for example to apply a hanging indent when they wrap) when they are only marked by a line break. I think this at least used to be the case but not sure if it’s true now.

Other Obsidian poetry threads:

Other discussion (much of it old):