Skip to content

Conversation

@eiiko6
Copy link
Contributor

@eiiko6 eiiko6 commented Nov 8, 2025

Addresses #24
This PR adds support for markdown tables including alignment handling, from parsing to PDF rendering.
Styling config is minimal though.

However I found some issues while testing:

  • Content inside cells is only parsed into raw text because filtering incompatible token types (headings, images...) might require either reworking other functions or adding potential code duplication.

  • When genpdfi encounters an unbreakable string (long words, urls..) in table cells, it fails with "Page overflowed while trying to wrap a string".

@theiskaa theiskaa self-requested a review November 9, 2025 12:35
@theiskaa theiskaa removed their assignment Nov 9, 2025
@theiskaa
Copy link
Owner

Thanks for the PR! I’ll review and test it shortly, then follow up with feedback.

@theiskaa
Copy link
Owner

I love the implementation — but yeah, as you mentioned, we have those issues.
I’m not entirely sure why genpdfi behaves that way, but regarding the limitation of having only strings inside the table, the issue might be related to need of some recursive implementation.

I’ll try to address the genpdfi problem in this PR, where I’m already adding font subsetting support. It would be great to include that fix in the new version of genpdfi.

If you have any ideas about solving the raw-text-only issue, that would be super helpful.
Thanks for the PR!

@eiiko6
Copy link
Contributor Author

eiiko6 commented Nov 12, 2025

I added parsing context handling in #51, this would allow to parse only allowed tokens in the table cells.

@eiiko6 eiiko6 mentioned this pull request Nov 13, 2025
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 this pull request may close these issues.

2 participants