Skip to content
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
Closed
Assignees
Labels

Comments

@eddibravo
Copy link

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
Copy link
Owner

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

@gettalong
Copy link
Owner

I have found the problem and fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants