Skip to content

Commit

Permalink
优化schemaToMarkdown函数,简化代码逻辑并增强测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Dec 17, 2024
1 parent 03d86c8 commit 0981b33
Show file tree
Hide file tree
Showing 3 changed files with 6,871 additions and 196 deletions.
3 changes: 2 additions & 1 deletion src/MarkdownEditor/editor/utils/schemaToMarkdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const parserNode = (node: any, preString = '', parent: any[]) => {
case 'card-after':
break;
case 'card':
str += preString + schemaToMarkdown(node.children, preString, newParent);
str += schemaToMarkdown(node.children, preString, newParent);
break;
case 'paragraph':
str += preString + schemaToMarkdown(node.children, preString, newParent);
break;
Expand Down
Loading

1 comment on commit 0981b33

@vercel
Copy link

@vercel vercel bot commented on 0981b33 Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.