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

NoMethodError: undefined method `<<' for nil:NilClass in parse paragraph #466

Closed
eddibravo opened this Issue Nov 3, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@eddibravo

eddibravo commented Nov 3, 2017

My english is not very good, so only logs without words.

$ bundle show | grep kramdown
  * kramdown (1.15.0)
2.3.3 :001 > Kramdown::Document.new('<p><img src="http://example.com/image.png"></p> some text', :html_to_native => true).to_kramdown
NoMethodError: undefined method `<<' for nil:NilClass
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/kramdown/paragraph.rb:39:in `parse_paragraph'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/kramdown.rb:148:in `block (2 levels) in parse_blocks'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/kramdown.rb:146:in `any?'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/kramdown.rb:146:in `block in parse_blocks'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/kramdown.rb:144:in `catch'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/kramdown.rb:144:in `parse_blocks'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/kramdown.rb:89:in `parse'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/parser/base.rb:69:in `parse'
from /home/bravo/.rvm/gems/ruby-2.3.3@project_name/gems/kramdown-1.15.0/lib/kramdown/document.rb:104:in `initialize'

@gettalong gettalong self-assigned this Nov 4, 2017

@gettalong gettalong added the bug label Nov 4, 2017

@gettalong

This comment has been minimized.

Owner

gettalong commented Nov 4, 2017

Thanks for reporting this bug - will be fixed with next release!

gettalong added a commit that referenced this issue Nov 5, 2017

@gettalong

This comment has been minimized.

Owner

gettalong commented Nov 5, 2017

I have found the problem and fixed it.

@gettalong gettalong closed this Nov 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment