jakebathman / markdown-table-generator Goto Github PK
View Code? Open in Web Editor NEWGenerate markdown syntax tables from delimited text
License: Do What The F*ck You Want To Public License
Generate markdown syntax tables from delimited text
License: Do What The F*ck You Want To Public License
Comma inside quoted strings should not be treated as a separator.
last column could use trailing |
also
I have the following example csv with 4 column and 6 rows that has cells with embedded returns. In my experience, this is very common when working with CSVs that contain text data.
Here's an example CSV file:
Criterion for organ dysfunction,Suggested thresholds,Conditions,Severity
"Venoarterial ECLS, temporary or durable LVAD or RVAD support",NA,None,Severe
Cardiac Arrest,NA,None,Severe
Heart rate (HR),">2SD above normal for age
•→ 0-7 days: HR>180
•→ >1 week - 1 m: HR>180
•→ >1 m - <1 y: HR>180
•→ >1 y - <6 y: HR>160
•→ 6 y - <13 y: HR>150
•→ 13 y - <18 y: HR>130",If present at the same time as any of the other criteria for CV organ dysfunction,Not graded
Systolic blood pressure (SBP),"More than 2SD below normal for age
•→ 0-7 days: SBP<50
•→ >1 week - 1 m: SBP<70
•→ >1 m - <1 y: SBP<75
•→ >1 y - <6 y: SBP<75
•→ 6 y - <13 y: SBP<80
•→ 13 y - <18 y: SBP<80",If present at the same time as any of the other criteria for CV organ dysfunction,Not graded
Vasoactive-Inotropic Score,≥5,If present at the same time as any of the other criteria for CV organ dysfunction,Not graded
Instead of having the expected output of 4 column and 6 rows, I get this:
Criterion for organ dysfunction | Suggested thresholds | Conditions | Severity |
---|---|---|---|
"Venoarterial ECLS | temporary or durable LVAD or RVAD support" | NA | None |
Cardiac Arrest | NA | None | Severe |
input was:
"4-A_27f_D04.ab1 testing
16A_6_27f_E03.ab1 does
APC1_27f_D09.ab1 this
CSB1A_27f_F09.ab1 work?"
output was:
"**4-A_27f_D04.ab1 ** | testing |
---|---|
16A_6_27f_E03.ab1 | does |
APC1_27f_D09.ab1 | this |
CSB1A_27f_F09.ab1 | work?" |
use this code:
https://github.com/shuGH/vscode-table-formatter
Hi, very useful too, nice work! 👍
My feedback, after paste my table, It's missed the first " | ", when you have a big table it is some annoying.
Bests!
using tabs:
retailer product price
0 Best Buy iPod 200
1 Amazon iPad 450
2 Amazon Battery pack 24.87
3 Amazon Chromebook 249.99
4 Target iPod 215
5 Walmart Chromebook 238.79
I want the first column name to be empty, instead, it moves all labels one column to left
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.