-
-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
Description
Initial checklist
- I read the support docsI read the contributing guideI agree to follow the code of conductI searched issues and couldn’t find anything (or linked relevant results below)To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Affected packages and versions
latest
Link to runnable example
No response
Steps to reproduce
import assert from 'node:assert/strict'
import {toHtml} from 'hast-util-to-html'
import {toHast} from 'mdast-util-to-hast'
import {raw} from './index.js'
/** @type {import('mdast').Root} */
const mdast = {
type: 'root',
children: [
{
type: 'paragraph',
children: [],
data: {
hChildren: [
// The root element here doesn’t affect the output.
// {
// type: 'root',
// children: [
{
type: 'element',
tagName: 'svg',
children: [
{
type: 'element',
tagName: 'foreignObject',
properties: {},
children: [
{
type: 'element',
tagName: 'div',
children: []
}
]
}
]
}
// ],
// },
]
}
}
]
}
const hast = toHast(mdast)
assert(hast)
console.dir(hast, {depth: null})
const hast2 = raw(hast)
console.dir(hast2, {depth: null})
const doc = toHtml(hast2)
console.log(doc)
See also: remcohaszing/remark-mermaidjs#12 (comment).
Expected behavior
foreignObject
should be cased
Actual behavior
lowercased
Affected runtime and version
latest
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
github-actions commentedon Dec 9, 2022