Skip to content

Instantly share code, notes, and snippets.

@teeparham
Last active December 17, 2015 23:09
Show Gist options
  • Save teeparham/5687096 to your computer and use it in GitHub Desktop.
Save teeparham/5687096 to your computer and use it in GitHub Desktop.
haml plain text formatting with line breaks and unescaped text
:plain
#{title}
look - this preserves the whitespace above
also note that title is unescaped because of :plain
\
the "\" in the above line also adds a blank line
no blank line will be rendered above this one
#{raw title} is another way to include unescaped values
:plain
the blank line above won't be added (weird)
but the blank line between will
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment