-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Spaces inserted into code #109
Comments
Hi @josephzidell! Please gist your raw markdown document, so I can try to reproduce. Thanks. |
Sure. It's a blog post https://gist.github.com/josephzidell/8816548 |
@josephzidell I'm sorry, but I don't see the extra white space. It's not in your gist. I created a testing gist, and the CSS looks good. Maybe, your implementation is adding the white space? |
@simeonwillbanks Thanks for your help. How would I determine if my "implementation" is adding the white space? |
@josephzidell Let's try a few things:
Thanks! |
@simeonwillbanks Thanks so much for your help. I trimmed down the problem to just a single line.
|
@josephzidell Thanks for the info, but I'm still unable to reproduce. Your markdown is sent to GitHub::Markdown. Maybe it's the source of the issue? Please try this in your rails console: markdown = @post.body_markdown
pipeline = HTML::Pipeline.new [HTML::Pipeline::MarkdownFilter]
pipeline.call(markdown)[:output].to_s
#=> "<pre lang=\"html\"><code><a href="mailto:[email protected]?subject=Hi!&amp;amp;body=Either type the email address or use the form. Thanks!"></a>\n</code></pre>"
GitHub::Markdown.to_html(markdown, :gfm)
#=> "<pre lang=\"html\"><code><a href="mailto:[email protected]?subject=Hi!&amp;amp;body=Either type the email address or use the form. Thanks!"></a>\n</code></pre>\n" |
Closing from inactivity. Feel free to re-open if you still need help. |
This is still an issue, that I'd like to get fixed. Due to the length of time here, I actually implemented the web app in PHP instead of rails :( to get around this problem. Followed @simeonwillbanks's instructions: no extra spaces there. |
@josephzidell If you tried my two examples and you didn't see extra spaces, it sounds like |
After some playing around, the issue certainly seems to be with The question is: what to do? |
@josephzidell you might want to try your question over at stackoverflow.com too |
@josephzidell I second trying on stackoverflow.com. |
Will do. Thanks, guys. Here's a link to the question. Thanks, guys! |
As you can see, it's actually a HAML issue. Thanks again. |
Good to know. Thanks! |
Using
produces
code
that has 10 spaces prepended to every line after the first, including an extra line with 10 spaces at the end.This
produces
The text was updated successfully, but these errors were encountered: