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: docs/06_custom_tags.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,15 +60,16 @@ If including more than one custom tag from this set, make sure that the `'float'
60
60
61
61
These tags are a part of the YAML 1.1 [language-independent types](https://yaml.org/type/), but are not a part of any default YAML 1.2 schema.
62
62
63
-
| Identifier | YAML Type | JS Type | Description |
|`'binary'`|[`!!binary`](https://yaml.org/type/binary.html)|`Uint8Array`| Binary data, represented in YAML as base64 encoded characters. |
66
-
|`'floatTime'`|[`!!float`](https://yaml.org/type/float.html)|`Number`| Sexagesimal floating-point number format, e.g. `190:20:30.15`. To stringify with this tag, the node `format` must be `'TIME'`. |
67
-
|`'intTime'`|[`!!int`](https://yaml.org/type/int.html)|`Number`| Sexagesimal integer number format, e.g. `190:20:30`. To stringify with this tag, the node `format` must be `'TIME'`. |
68
-
|`'omap'`|[`!!omap`](https://yaml.org/type/omap.html)|`Map`| Ordered sequence of key: value pairs without duplicates. Using `mapAsMap: true` together with this tag is not recommended, as it makes the parse → stringify loop non-idempotent. |
69
-
|`'pairs'`|[`!!pairs`](https://yaml.org/type/pairs.html)|`Array`| Ordered sequence of key: value pairs allowing duplicates. To create from JS, use `doc.createNode(array, { tag: '!!pairs' })`. |
70
-
|`'set'`|[`!!set`](https://yaml.org/type/set.html)|`Set`| Unordered set of non-equal values. |
71
-
|`'timestamp'`|[`!!timestamp`](https://yaml.org/type/timestamp.html)|`Date`| A point in time, e.g. `2001-12-15T02:59:43`. |
63
+
| Identifier | YAML Type | JS Type | Description |
|`'binary'`|[`!!binary`](https://yaml.org/type/binary.html)|`Uint8Array`| Binary data, represented in YAML as base64 encoded characters. |
66
+
|`'floatTime'`|[`!!float`](https://yaml.org/type/float.html)|`Number`| Sexagesimal floating-point number format, e.g. `190:20:30.15`. To stringify with this tag, the node `format` must be `'TIME'`. |
67
+
|`'intTime'`|[`!!int`](https://yaml.org/type/int.html)|`Number`| Sexagesimal integer number format, e.g. `190:20:30`. To stringify with this tag, the node `format` must be `'TIME'`. |
68
+
|`'merge'`|[`!!merge`](https://yaml.org/type/merge.html)|`Symbol('<<')`| A `<<` merge key which allows one or more mappings to be merged with the current one. |
69
+
|`'omap'`|[`!!omap`](https://yaml.org/type/omap.html)|`Map`| Ordered sequence of key: value pairs without duplicates. Using `mapAsMap: true` together with this tag is not recommended, as it makes the parse → stringify loop non-idempotent. |
70
+
|`'pairs'`|[`!!pairs`](https://yaml.org/type/pairs.html)|`Array`| Ordered sequence of key: value pairs allowing duplicates. To create from JS, use `doc.createNode(array, { tag: '!!pairs' })`. |
71
+
|`'set'`|[`!!set`](https://yaml.org/type/set.html)|`Set`| Unordered set of non-equal values. |
72
+
|`'timestamp'`|[`!!timestamp`](https://yaml.org/type/timestamp.html)|`Date`| A point in time, e.g. `2001-12-15T02:59:43`. |
0 commit comments