Closed SachaG closed 11 years ago
What does your layout file look like? Is that really your whole config.rb
?
Here's a link to the repo: https://github.com/SachaG/TMB-Middleman
Relevant files:
It looks like I solved this on my own blog by putting this in the article layout:
.post-content= find_and_preserve do
= yield
It just works around Haml's overwhelming desire to indent everything.
Awesome, it works! So it's the same HAML problem after all, I just didn't think it would affect the markdown code inside another file too!
Thanks again :)
Thanks very much for this tip. This was driving me crazy.
I found I could not get
.container.menu--push= find_and_preserve do
= yield
to work, but
.container.menu--push
~ yield
(~ in place of =) did.
How bloody annoying!
@thattommyhall ~ yield
worked for me as well. Thanks!
For those just finding this, worth noting that haml's ~
is just an =
with #find_and_preserve
run: http://haml.info/docs/yardoc/file.REFERENCE.html#whitespace_preservation
Thank you!! Was just having problems with this.
I'm using middleman-syntax with Redcarpet to get GitHub-style code blocks and everything's working fine, except that the indentation is off, as you can see here:
http://tmb-middleman.herokuapp.com/2013/02/20/a-look-at-a-meteor-template/
The same problem was also reported on Stack Overflow but in that case the code block was inside HAML whereas here it's inside Markdown.
Here is my config.rb file: