html2markdown icon indicating copy to clipboard operation
html2markdown copied to clipboard

add support for plain table conversion

Open rmendocna opened this issue 5 years ago • 1 comments

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.

rmendocna avatar Jul 25 '19 13:07 rmendocna

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

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 .

dlon avatar Aug 08 '19 16:08 dlon