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
feat: 🐛 Do not crash if get_enclosing_chapter returns nil #471
Conversation
b5476bd
to
659fb7d
Compare
Could we modify You can find an example of accessing the parent document from a table cell here: |
Please lock gepub to 1.0.15 instead as 1.0.16 is clearly broken. |
8603b16
to
4a5ecbc
Compare
In order for this to be merged, the code needs to find the chapter when starting from an AsciiDoc table cell, not just skip it. Otherwise, the metadata won't be right. |
I don't see how to fix this without asciidoctor/asciidoctor#4380. See #473 for an ugly workaround. |
WRT gepub issue, see #474 and skoji/gepub#140 (comment) |
Fixes #470
Probably not the best approach, but enough to protect from the crash.