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
|`ConvertFrom-Yaml`|`ConvertFrom-Yml`| Parse a YAML string into an object. |
34
+
|`ConvertTo-Yaml`|`ConvertTo-Yml`| Serialize an object into a YAML string. |
35
+
36
+
> [!IMPORTANT]
37
+
> The input to `ConvertFrom-Yaml` must be a valid YAML string. The cmdlet does not read files or extract YAML frontmatter from markdown — that is the caller's responsibility (for example, using a Markdown module to extract frontmatter, then piping the result into `ConvertFrom-Yaml`).
28
38
29
39
### YAML specification
30
40
@@ -37,7 +47,7 @@ Practical implications of the core schema:
37
47
- Integers and floats parse to their native types using invariant culture.
38
48
- Anything else is a string. Quoted strings (`'...'`, `"..."`) always preserve the string type.
39
49
40
-
The supported YAML subset covers block-style mappings, block-style sequences, nested structures, single- and double-quoted scalars (with `\n`, `\t`, `\r`, `\\`, `\"` escapes in double quotes), and full-line / inline `#` comments. Flow style (`[a, b]`, `{a: 1}`), block scalars (`|`, `>`), anchors, aliases, tags, multi-document streams, and `!!timestamp` are not yet supported.
50
+
The supported YAML subset covers block-style mappings, block-style sequences, nested structures, single- and double-quoted scalars (with `\n`, `\t`, `\r`, `\\`, `\"` escapes in double quotes), document start (`---`) and end (`...`) markers, and full-line / inline `#` comments. Flow style (`[a, b]`, `{a: 1}`), block scalars (`|`, `>`), anchors, aliases, tags, multi-document streams, and `!!timestamp` are not yet supported.
0 commit comments