IvanMathy / Boop

A scriptable scratchpad for developers. In slow yet steady progress.
https://boop.okat.best
MIT License
3.84k stars 356 forks source link

Script to convert text to github markdown table #245

Closed alexc155 closed 3 years ago

alexc155 commented 3 years ago

Would love it if you could include this script to convert a block of text to github-style markdown table.

For example,

col1,col2
In eiusmod amet fugiat officia,officia nulla esse culpa nulla magna nisi 
nostrud reprehenderit magna exercitation,labore nulla amet velit aliqua ut 
tempor deserunt consequat ad non pariatur,eu officia culpa id aliqua do enim

becomes

| col1                                      | col2                                       |
|-------------------------------------------|--------------------------------------------|
| In eiusmod amet fugiat officia            | officia nulla esse culpa nulla magna nisi  |
| nostrud reprehenderit magna exercitation  | labore nulla amet velit aliqua ut          |
| tempor deserunt consequat ad non pariatur | eu officia culpa id aliqua do enim         |

Thanks!

sonarcloud[bot] commented 3 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication