Skip to content

fix: handle non-list parent_tags in table converter#164

Open
saschabuehrle wants to merge 2 commits intoSpenhouet:mainfrom
saschabuehrle:fix/issue-116
Open

fix: handle non-list parent_tags in table converter#164
saschabuehrle wants to merge 2 commits intoSpenhouet:mainfrom
saschabuehrle:fix/issue-116

Conversation

@saschabuehrle
Copy link
Copy Markdown

@saschabuehrle saschabuehrle commented Apr 5, 2026

Fixes #116

markdownify can pass a non-list parent_tags value, which made the td membership check crash with TypeError. This guards the table-specific checks in convert_p, convert_ol, and convert_ul so non-list values fall back to default behavior.

Added a unit test that calls convert_p with parent_tags=False to cover the reported crash path.

Greetings, saschabuehrle

@Spenhouet
Copy link
Copy Markdown
Owner

The change looks somewhat similar to https://github.com/Spenhouet/confluence-markdown-exporter/pull/153/changes
Can you check how this differs and if #153 contains any additional relevant changes?

@Spenhouet Spenhouet mentioned this pull request Apr 7, 2026
@Spenhouet Spenhouet added the feedback required Needs more information from users. label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feedback required Needs more information from users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: argument of type 'bool' is not iterable

2 participants