Last active
December 17, 2015 23:09
-
-
Save teeparham/5687096 to your computer and use it in GitHub Desktop.
haml plain text formatting with line breaks and unescaped text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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