cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoDOGE employeelemmy.worldexternal-linkmessage-square98fedilinkarrow-up1532arrow-down110cross-posted to: programmerhumor@lemmy.ml
arrow-up1522arrow-down1external-linkDOGE employeelemmy.worldcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square98fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareJaddedFauceet@lemmy.worldlinkfedilinkarrow-up2arrow-down1·edit-25 hours agoPrettier doesn’t make my markdown table prettier tho. This is what i did prompt Given the following markdown table | input | output l | -- | -- | | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 | Align the vertical bar. Align number to the left output Here’s the table with the vertical bars aligned and numbers left-aligned: | input | output l | |-------|----------| | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 | Each column has been padded so that the vertical bars line up consistently, and the numbers are aligned to the left as requested.
Prettier doesn’t make my markdown table prettier tho. This is what i did
prompt
Given the following markdown table
| input | output l | -- | -- | | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 |
Align the vertical bar. Align number to the left
output
Here’s the table with the vertical bars aligned and numbers left-aligned:
| input | output l | |-------|----------| | 2.6 | 3 | | 2.5 | 2 | | 2.4 | 2 | | 1.6 | 2 | | 1.5 | 2 | | 1.4 | 1 |
Each column has been padded so that the vertical bars line up consistently, and the numbers are aligned to the left as requested.