Skip to content

Commit

Permalink
fix: rich text render node
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Jan 5, 2023
1 parent 5afca32 commit 7372411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/rich-text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function renderNodes(nodes?: NodesType): string {
if (node.type === 'text') {
result += node.text
} else if (node.name) {
result = `<${node.name}`
result += `<${node.name}`
if (node.attrs) {
for (const key in node.attrs) {
result += ` ${key}="${node.attrs[key]}"`
Expand Down

0 comments on commit 7372411

Please sign in to comment.