You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/docs/features.md
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -208,6 +208,30 @@ When you’re a carpenter making a beautiful chest of drawers, you’re not goin
208
208
> > Even support the nest blockquotes!
209
209
> > [name=ChengHan Wu][time=Sun, Jun 28, 2015 10:00 PM][color=red]
210
210
211
+
### Render CSV as table
212
+
213
+
You can use write csv in the codeblock:
214
+
215
+
~~~md
216
+
```csvpreview {header="true"}
217
+
firstName,lastName,email,phoneNumber
218
+
John,Doe,john@doe.com,0123456789
219
+
Jane,Doe,jane@doe.com,9876543210
220
+
James,Bond,james.bond@mi6.co.uk,0612345678
221
+
```
222
+
~~~
223
+
224
+
which rendered to:
225
+
226
+
```csvpreview {header="true"}
227
+
firstName,lastName,email,phoneNumber
228
+
John,Doe,john@doe.com,0123456789
229
+
Jane,Doe,jane@doe.com,9876543210
230
+
James,Bond,james.bond@mi6.co.uk,0612345678
231
+
```
232
+
233
+
We use [Papa Parse](https://www.papaparse.com/) for parsing csv. The parsing option is given in braces: `{}`, and multiple options are seperated by a space. e.g. `{header="true" delimiter="."}`. Please read [their documentation](https://www.papaparse.com/docs#config) as reference.
0 commit comments