gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 274 forks source link

[bug] Kramdown converter fails with NoMethodError: undefined method `type' for nil #809

Closed honzasterba closed 1 week ago

honzasterba commented 4 months ago

Steps to reproduce:

html = File.read("example.html")
doc, = Kramdown::Parser::Html.parse(html)
Kramdown::Converter::Kramdown.convert(doc)

will submit a PR with a fix

honzasterba commented 4 months ago

Attaching the example HTML file

example.html.zip

gettalong commented 1 week ago

This is fixed and will be in the next release.