1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Minor formatting / whitespace

This commit is contained in:
Matt Wildig 2013-04-04 01:51:43 +01:00 committed by Norman Clarke
parent 510af3bed8
commit 1a700cec5e

View file

@ -186,7 +186,6 @@ is compiled to:
## HTML Elements
### Element Name: `%`
The percent character is placed at the beginning of a line. It's followed
@ -621,7 +620,6 @@ is compiled to:
Hello!
</div>
## Doctype: `!!!`
When describing HTML documents with Haml, you can have a document type or XML
@ -1119,7 +1117,6 @@ option} to control when CDATA tags are added.
Parses the filtered text with [Less](http://lesscss.org/) to produce CSS output.
This filter is implemented using Tilt.
{#markdown-filter}
### `:markdown`
Parses the filtered text with
@ -1232,14 +1229,15 @@ Sometimes you don't want Haml to indent all your text.
For example, tags like `pre` and `textarea` are whitespace-sensitive;
indenting the text makes them render wrong.
Haml deals with this by "preserving" newlines before they're put into the document --
converting them to the HTML whitespace escape code, `&#x000A;`.
Then Haml won't try to re-format the indentation.
Haml deals with this by "preserving" newlines before they're put into the
document -- converting them to the HTML whitespace escape code, `&#x000A;`. Then
Haml won't try to re-format the indentation.
Literal `textarea` and `pre` tags automatically preserve content given through `=`.
Dynamically-generated `textarea`s and `pre`s can't be preserved automatically,
and so should be passed through {Haml::Helpers#find\_and\_preserve} or the [`~` command](#tilde),
which has the same effect.
Literal `textarea` and `pre` tags automatically preserve content given through
`=`. Dynamically-generated `textarea`s and `pre`s can't be preserved
automatically, and so should be passed through
{Haml::Helpers#find\_and\_preserve} or the [`~` command](#tilde), which has the
same effect.
Blocks of literal text can be preserved using the [`:preserve` filter](#preserve-filter).