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

Do not crash when adding an image inside a table cell #470

Closed
someth2say opened this issue Apr 30, 2024 · 0 comments
Closed

Do not crash when adding an image inside a table cell #470

someth2say opened this issue Apr 30, 2024 · 0 comments
Labels
Milestone

Comments

@someth2say
Copy link
Contributor

A minimal reproducer would be:

|===
a|
image::image.svg[]
|===

If trying to generate the ePub leads to a crash:

$ asciidoctor-epub3 book.adoc
undefined method `attr?' for nil:NilClass

The reason is that the method get_enclosing_chapter returns nil when inside a table cell document.

slonopotamus added a commit to slonopotamus/asciidoctor-epub3 that referenced this issue May 12, 2024
slonopotamus added a commit to slonopotamus/asciidoctor-epub3 that referenced this issue May 12, 2024
slonopotamus added a commit to slonopotamus/asciidoctor-epub3 that referenced this issue May 12, 2024
@slonopotamus slonopotamus added this to the next milestone May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants