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

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

Open
honzasterba opened this issue Jul 18, 2024 · 1 comment · May be fixed by #810
Open

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

honzasterba opened this issue Jul 18, 2024 · 1 comment · May be fixed by #810

Comments

@honzasterba
Copy link

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

Attaching the example HTML file

example.html.zip

honzasterba added a commit to honzasterba/kramdown that referenced this issue Jul 18, 2024
weird combination of LI and P tags can cause the converter to crash

fixes gettalong#809
@honzasterba honzasterba linked a pull request Jul 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant