Fix to make value
/ children
optional · syntax-tree/unist@b7c4317 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit b7c4317
Fix to make value
/ children
optional
Example without both attributes: markdown `break` or `horizontalRule` nodes.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -19,7 +19,7 @@ This document explains some terminology relating to | ||
19 | 19 | * must have a `type` property set to a to its namespace semantic |
20 | 20 | `string`; |
21 | 21 | |
22 | -* must have either a `value` property set to a `string` or a `children` | |
22 | +* may have either a `value` property set to a `string` or a `children` | |
23 | 23 | property set to an array of one or more `Unist` nodes; |
24 | 24 | |
25 | 25 | * may have a `data` property set to a `JSON.stringify`able object; |