Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit d5e243d

Browse files
committed
fix(remark-docz): visit correct nodes
1 parent 0c61f64 commit d5e243d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/remark-docz/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ const mergeNodeWithoutCloseTag = (tree: any, node: any, idx: any) => {
6161
// merge all values from node open tag until node with the close tag
6262
const mergeUntilCloseTag = valuesFromNodes(tree)
6363
const values = mergeUntilCloseTag(idx, tagCloseIdx)
64-
6564
node.value = values.reverse().join('\n')
6665
}
6766
}
@@ -70,7 +69,7 @@ const mergeNodeWithoutCloseTag = (tree: any, node: any, idx: any) => {
7069
export default () => (tree: any) => {
7170
visit(
7271
tree,
73-
'html',
72+
'jsx',
7473
(node: any, idx: any): void => {
7574
// check if a node has just open tag
7675
mergeNodeWithoutCloseTag(tree, node, idx)

0 commit comments

Comments
 (0)