Closed as duplicate of#13
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
Steps to reproduce
https://github.com/JounQin/test/tree/repro/hast-util-raw
Simply run node index.js
Actual behavior
{
"type": "element",
"tagName": "p",
"properties": {},
"children": [
{
"type": "element",
"tagName": "code",
"properties": {
"meta": "title=\"Hello World\""
},
"children": []
}
]
}
Expected behavior
{
"type": "element",
"tagName": "p",
"properties": {},
"children": [
{
"type": "element",
"tagName": "code",
"properties": {
"meta": "title=\"Hello World\""
},
"data": {
"meta": "title=\"Hello World\""
},
"children": []
}
]
}
Runtime
Package manager
Operating system
macOS Sequoia 15.5 (24F74)
Build and bundle tools
No response