mirror of
https://github.com/parsecsv/csv-spec.git
synced 2026-02-19 08:56:38 +00:00
Make example headers italic
This commit is contained in:
14
README.md
14
README.md
@@ -70,14 +70,14 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
1. Each record is located on a separate line, each line ending with a line
|
1. Each record is located on a separate line, each line ending with a line
|
||||||
break (CRLF). For example:
|
break (CRLF). For example:
|
||||||
|
|
||||||
CSV:
|
_CSV:_
|
||||||
|
|
||||||
```csv
|
```csv
|
||||||
aaa,bbb,ccc¬
|
aaa,bbb,ccc¬
|
||||||
xxx,yyy,zzz¬
|
xxx,yyy,zzz¬
|
||||||
```
|
```
|
||||||
|
|
||||||
JSON:
|
_JSON:_
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[ ["aaa", "bbb", "ccc"],
|
[ ["aaa", "bbb", "ccc"],
|
||||||
@@ -87,14 +87,14 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
2. Though recommended, the last record in a file is not required to have a
|
2. Though recommended, the last record in a file is not required to have a
|
||||||
ending line break. For example:
|
ending line break. For example:
|
||||||
|
|
||||||
CSV:
|
_CSV:_
|
||||||
|
|
||||||
```csv
|
```csv
|
||||||
aaa,bbb,ccc¬
|
aaa,bbb,ccc¬
|
||||||
xxx,yyy,zzz
|
xxx,yyy,zzz
|
||||||
```
|
```
|
||||||
|
|
||||||
JSON:
|
_JSON:_
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[ ["aaa", "bbb", "ccc"],
|
[ ["aaa", "bbb", "ccc"],
|
||||||
@@ -106,13 +106,15 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
names corresponding to the fields in the file and should contain the same
|
names corresponding to the fields in the file and should contain the same
|
||||||
number of fields as the records in the rest of the file. For example:
|
number of fields as the records in the rest of the file. For example:
|
||||||
|
|
||||||
|
_CSV:_
|
||||||
|
|
||||||
```csv
|
```csv
|
||||||
field_1,field_2,field_3¬
|
field_1,field_2,field_3¬
|
||||||
aaa,bbb,ccc¬
|
aaa,bbb,ccc¬
|
||||||
xxx,yyy,zzz¬
|
xxx,yyy,zzz¬
|
||||||
```
|
```
|
||||||
|
|
||||||
JSON (ignoring headers):
|
_JSON (ignoring headers):_
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[ ["field_1", "field_2", "field_3"],
|
[ ["field_1", "field_2", "field_3"],
|
||||||
@@ -120,7 +122,7 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
["xxx", "yyy", "zzz"] ]
|
["xxx", "yyy", "zzz"] ]
|
||||||
```
|
```
|
||||||
|
|
||||||
JSON (using headers):
|
_JSON (using headers):_
|
||||||
|
|
||||||
```json
|
```json
|
||||||
[ {"field_1": "aaa", "field_2": "bbb", "field_3": "ccc"},
|
[ {"field_1": "aaa", "field_2": "bbb", "field_3": "ccc"},
|
||||||
|
|||||||
Reference in New Issue
Block a user