html2markdown
html2markdown copied to clipboard
add support for plain table conversion
Hi,
First 'pull-request' in quite a long, not sure how this works.
Basically suggesting a non-recursive way of markdownifying an html table with plain output in each cell.
For my own purposed I aimed at preserving column widths across rows and observing any given style="text-align: xxx"
cell attribute.
Cell contents are rendered as plain tag.text but I believe you can easily improve this to deliver markdownified contents.
Thanks for this! I'll be able to check it out in a week or so
Den tors 25 juli 2019 15:09rmendocna [email protected] skrev:
Hi, First 'pull-request' in quite a long, not sure how this works. Basically suggesting a non-recursive way of markdownifying an html table with plain output in each cell. For my own purposed I aimed at preserving column widths across rows and observing any given style="text-align: xxx" cell attribute. Cell contents are rendered as plain tag.text but I believe you can easily improve this to deliver markdownified contents.
You can view, comment on, or merge this pull request online at:
https://github.com/dlon/html2markdown/pull/10 Commit Summary
- add support for plain table conversion
File Changes
- M html2markdown.py https://github.com/dlon/html2markdown/pull/10/files#diff-0 (79)
- M tests.py https://github.com/dlon/html2markdown/pull/10/files#diff-1 (11)
Patch Links:
- https://github.com/dlon/html2markdown/pull/10.patch
- https://github.com/dlon/html2markdown/pull/10.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dlon/html2markdown/pull/10?email_source=notifications&email_token=AAUH2LPFEGOW4UJFX73KIJTQBGQXNA5CNFSM4IG2O43KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HBPG2NQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUH2LPS7OJQOHTETESZIHTQBGQXNANCNFSM4IG2O43A .