Code Monkey home page Code Monkey logo

Comments (16)

simeonwillbanks avatar simeonwillbanks commented on June 25, 2024

Hi @josephzidell!

Please gist your raw markdown document, so I can try to reproduce. Thanks.

from html-pipeline.

josephzidell avatar josephzidell commented on June 25, 2024

Sure. It's a blog post https://gist.github.com/josephzidell/8816548

from html-pipeline.

simeonwillbanks avatar simeonwillbanks commented on June 25, 2024

@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?

from html-pipeline.

josephzidell avatar josephzidell commented on June 25, 2024

@simeonwillbanks Thanks for your help. How would I determine if my "implementation" is adding the white space?

from html-pipeline.

simeonwillbanks avatar simeonwillbanks commented on June 25, 2024

@josephzidell Let's try a few things:

  1. Double check your CSS styles; is a padding or a margin being added?
  2. Add result[:output].to_s to your gist
  3. Run bundle exec nokogiri -v and paste output into this issue
  4. Paste more relevant implementation code into this issue

Thanks!

from html-pipeline.

josephzidell avatar josephzidell commented on June 25, 2024

@simeonwillbanks Thanks so much for your help. I trimmed down the problem to just a single line.

  1. It's actual spaces, highlightable via a mouse

  2. Here's a new gist with everything.

  3. nokogiri version

    $ bundle exec nokogiri -v

    Nokogiri (1.6.1)

    ---
    warnings: []
    nokogiri: 1.6.1
    ruby:
      version: 2.0.0
      platform: x86_64-linux
      description: ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
      engine: ruby
    libxml:
      binding: extension
      source: packaged
      libxml2_path: /home/wwc/.rvm/gems/ruby-2.0.0-p353/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxml2/2.8.0
      libxslt_path: /home/wwc/.rvm/gems/ruby-2.0.0-p353/gems/nokogiri-1.6.1/ports/x86_64-linux-gnu/libxslt/1.1.26
      compiled: 2.8.0
      loaded: 2.8.0
    
  4. That's it!

from html-pipeline.

simeonwillbanks avatar simeonwillbanks commented on June 25, 2024

@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>&lt;a href=&quot;mailto:[email protected]?subject=Hi!&amp;amp;amp;body=Either type the email address or use the form. Thanks!&quot;&gt;&lt;/a&gt;\n</code></pre>" 
GitHub::Markdown.to_html(markdown, :gfm)
#=> "<pre lang=\"html\"><code>&lt;a href=&quot;mailto:[email protected]?subject=Hi!&amp;amp;amp;body=Either type the email address or use the form. Thanks!&quot;&gt;&lt;/a&gt;\n</code></pre>\n" 

from html-pipeline.

jch avatar jch commented on June 25, 2024

Closing from inactivity. Feel free to re-open if you still need help.

from html-pipeline.

josephzidell avatar josephzidell commented on June 25, 2024

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.

from html-pipeline.

simeonwillbanks avatar simeonwillbanks commented on June 25, 2024

@josephzidell If you tried my two examples and you didn't see extra spaces, it sounds like html-pipeline isn't the culprit. Maybe the issue is with raw?

from html-pipeline.

josephzidell avatar josephzidell commented on June 25, 2024

After some playing around, the issue certainly seems to be with raw. So it's not an issue with html-pipeline.

The question is: what to do?

from html-pipeline.

jch avatar jch commented on June 25, 2024

@josephzidell you might want to try your question over at stackoverflow.com too

from html-pipeline.

simeonwillbanks avatar simeonwillbanks commented on June 25, 2024

@josephzidell I second trying on stackoverflow.com.

from html-pipeline.

josephzidell avatar josephzidell commented on June 25, 2024

Will do. Thanks, guys. Here's a link to the question. Thanks, guys!

from html-pipeline.

josephzidell avatar josephzidell commented on June 25, 2024

As you can see, it's actually a HAML issue. Thanks again.

from html-pipeline.

simeonwillbanks avatar simeonwillbanks commented on June 25, 2024

Good to know. Thanks!

from html-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.