-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation problem with fenced code blocks in Markdown #16
Comments
What does your layout file look like? Is that really your whole |
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 |
For those just finding this, worth noting that haml's |
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:
The text was updated successfully, but these errors were encountered: