@cm0002@lemmy.world to Programmer Humor@programming.dev • 3 months agoDOGE employeelemmy.worldimagemessage-square96fedilinkarrow-up11arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1imageDOGE employeelemmy.world@cm0002@lemmy.world to Programmer Humor@programming.dev • 3 months agomessage-square96fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-square@jdeath@lemm.eelinkfedilink0•3 months agooh nice! i use Prettier for that and it has worked fine for a decade or so, but it is really lacking any AI so i have been having to search for alternatives. maybe PrettierAI, it can use LLMs to format all your code!
minus-square@JaddedFauceet@lemmy.worldlinkfedilink0•edit-23 months 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.
oh nice! i use Prettier for that and it has worked fine for a decade or so, but it is really lacking any AI so i have been having to search for alternatives.
maybe PrettierAI, it can use LLMs to format all your code!
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.