prettytable-rs icon indicating copy to clipboard operation
prettytable-rs copied to clipboard

Add markdown table formatting

Open marcelbuesing opened this issue 5 years ago • 6 comments

Allows printing tables as markdown tables:

| Title 1     | Title 2    |
|-------------|------------|
| Value 1     | Value 2    |
| Value three | Value four |
Title 1 Title 2
Value 1 Value 2
Value three Value four

marcelbuesing avatar Oct 10 '19 09:10 marcelbuesing

Codecov Report

Merging #118 (b5711df) into master (6bb234c) will increase coverage by 0.17%. The diff coverage is 93.33%.

:exclamation: Current head b5711df differs from pull request most recent head 7c50d8d. Consider uploading reports for the commit 7c50d8d to get more accurate results

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   85.86%   86.04%   +0.17%     
==========================================
  Files           5        5              
  Lines        1323     1340      +17     
==========================================
+ Hits         1136     1153      +17     
  Misses        187      187              
Impacted Files Coverage Δ
src/cell.rs 88.01% <75.00%> (ø)
src/row.rs 90.86% <80.00%> (ø)
src/format.rs 70.85% <100.00%> (+0.53%) :arrow_up:
src/lib.rs 87.85% <100.00%> (+0.30%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Oct 10 '19 09:10 codecov[bot]

@phsym I'd love to see this feature implemented! Just being curious, what has been blocking the merge? 🤔

rami3l avatar Nov 20 '20 22:11 rami3l

This would still be incredibly useful!

sstadick avatar Mar 06 '22 17:03 sstadick

@sstadick For my project (pacaptr) I've switched to tabled which is capable of doing this.

rami3l avatar Mar 06 '22 19:03 rami3l

I know it's been open for a while but if someone has time a rebase or a PR would be appreciated and get it to 0.11

nvm I fixed the conflict

pinkforest avatar Dec 27 '22 10:12 pinkforest

Would be really nice, if that could be merged

PSeitz avatar Apr 05 '23 05:04 PSeitz