-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render csv codeblock as table #1436
Comments
Nice feature. I wonder how this will be done. I mean I will still be able to render a CSV codeblock as a CSV codeblock right? |
In my imagination, users can enable CSV as table with the syntax: ```csv {editor="true"}
John,Doe,120 jefferson st.,Riverside, NJ, 08075
Jack,McGinnis,220 hobo Av.,Phila, PA,09119
"John ""Da Man""",Repici,120 Jefferson St.,Riverside, NJ,08075
Stephen,Tyler,"7452 Terrace ""At the Plaza"" road",SomeTown,SD, 91234
,Blankman,,SomeTown, SD, 00298
"Joan ""the bone"", Anne",Jet,"9th, at Terrace plc",Desert City,CO,00123
``` And in the right side (preview panel), the data could be rendered to a table with HandsonTable(interactive) or some library. Then we can listen to the table on such events as afterChange, and reflecting the changes to the document. |
It seems too far for implementing an editing feature. 🤣 Or we can just render CSV as HTML table when setting the language to ```csvpreview
John,Doe,120 jefferson st.,Riverside, NJ, 08075
Jack,McGinnis,220 hobo Av.,Phila, PA,09119
"John ""Da Man""",Repici,120 Jefferson St.,Riverside, NJ,08075
Stephen,Tyler,"7452 Terrace ""At the Plaza"" road",SomeTown,SD, 91234
,Blankman,,SomeTown, SD, 00298
"Joan ""the bone"", Anne",Jet,"9th, at Terrace plc",Desert City,CO,00123
``` And providing more parsing options: ```csvpreview {header="true" delimiter=","}
First Name,Last Name, Address 1, Address 2, State, Zip
John,Doe,120 jefferson st.,Riverside, NJ, 08075
``` |
Nice, thanks! Editing would be a nice thing to add, but we can agree that CodiMD is not Excel :-) |
…-material-7.x chore(deps): update dependency mkdocs-material to v7.1.10 (master)
The text was updated successfully, but these errors were encountered: