I don’t want the extra wrapping div that the following provides:
.note
:markdown
Please, [don't use Haml for markup][x], for your sake!
[x]: http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/
But I do not want to have to write this:
%p.note
Please,
= link_to("don't use Haml for markup", "http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/") + ", for your sake!"
Is there a way to use :markdown but also attach a CSS class to the generated paragraph tag?
See: http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/
The short answer appears to be: no. This is a Markdown issue, not a HAML issue.
You can do it though just by using HTML directly in the
markdownblock:But you can’t stick markdown inside the tags, because everthing in there is interpreted as HTML and not Markdown. There may be extensions that allow you to add classes like this, but it’s apparently not possible natively.