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 275 forks source link

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

Open honzasterba opened 3 months ago

honzasterba commented 3 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 3 months ago

Attaching the example HTML file

example.html.zip