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

Commit

Permalink
fix(remark-docz): visit correct nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Mar 11, 2019
1 parent 0c61f64 commit d5e243d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/remark-docz/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const mergeNodeWithoutCloseTag = (tree: any, node: any, idx: any) => {
// merge all values from node open tag until node with the close tag
const mergeUntilCloseTag = valuesFromNodes(tree)
const values = mergeUntilCloseTag(idx, tagCloseIdx)

node.value = values.reverse().join('\n')
}
}
Expand All @@ -70,7 +69,7 @@ const mergeNodeWithoutCloseTag = (tree: any, node: any, idx: any) => {
export default () => (tree: any) => {
visit(
tree,
'html',
'jsx',
(node: any, idx: any): void => {
// check if a node has just open tag
mergeNodeWithoutCloseTag(tree, node, idx)
Expand Down

0 comments on commit d5e243d

Please sign in to comment.