Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderJSON 导出的 JSON 不正确 #1278

Closed
GCM6 opened this issue Aug 8, 2022 · 2 comments
Closed

RenderJSON 导出的 JSON 不正确 #1278

GCM6 opened this issue Aug 8, 2022 · 2 comments
Assignees
Milestone

Comments

@GCM6
Copy link

GCM6 commented Aug 8, 2022

编辑模式

  • ir 即时渲染模式

描述问题

复制官方的demo 的Markdown内容然后导出的JSON内容发现有逗号丢失的情况

期待的结果

希望能正常导出正确的JSON

版本信息

  • 版本:^3.8.15
  • 操作系统:window
  • 浏览器:chrome

其他信息

[{"flag":"Paragraph","children":[{"type":"Text","value":"Vditor 是一款"},{"flag":"Strong","children":[{"type":"Text","value":"所见即所得"}]},{"type":"Text","value":"编辑器,支持 "},{"flag":"Emphasis","children":[{"type":"Text","value":"Markdown"}]},{"type":"Text","value":"。"}]},{"type":"List","value":"ul","children":[{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"type":"Text","value":"不熟悉 Markdown 可使用工具栏或快捷键进行排版"}]}]},{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"type":"Text","value":"熟悉 Markdown 可直接排版,也可切换为分屏预览"}]}]}]},{"flag":"Paragraph","children":[{"type":"Text","value":"更多细节和用法请参考 "},{"type":"Link","value":"https://ld246.com/article/1549638745630","title":"Vditor - 浏览器端的 Markdown 编辑器"},{"type":"Text","value":",同时也欢迎向我们提出建议或报告问题,谢谢 ❤️"}]},{"type":"Heading","value":"h2","children":[{"type":"Text","value":"教程"}]},{"flag":"Paragraph","children":[{"type":"Text","value":"这是一篇讲解如何正确使用 "},{"flag":"Strong","children":[{"type":"Text","value":"Markdown"}]},{"type":"Text","value":" 的排版示例,学会这个很有必要,能让你的文章有更佳清晰的排版。"}]},{"flag":"Blockquote","children":[{"flag":"Paragraph","children":[{"type":"Text","value":"引用文本:Markdown is a text formatting syntax inspired"}]}]},{"type":"Heading","value":"h2","children":[{"type":"Text","value":"语法指导"}]},{"type":"Heading","value":"h3","children":[{"type":"Text","value":"普通内容"}]},{"flag":"Paragraph","children":[{"type":"Text","value":"这段内容展示了在内容里面一些排版格式,比如:"}]},{"type":"List","value":"ul","children":[{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"flag":"Strong","children":[{"type":"Text","value":"加粗"}]},{"type":"Text","value":" - "},{"type":"CodeSpan","value":"加粗"}]}]},{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"flag":"Emphasis","children":[{"type":"Text","value":"倾斜"}]},{"type":"Text","value":" - "},{"type":"CodeSpan","value":"倾斜"}]}]},{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"flag":"Strikethrough","children":[{"type":"Text","value":"删除线"}]},{"type":"Text","value":" - "},{"type":"CodeSpan","value":"删除线"}]}]},{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"type":"CodeSpan","value":"Code 标记"}{"type":"Text","value":" - "},{"type":"CodeSpan","value":"Code 标记"}]}]},{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"type":"Link","value":"https://ld246.com","title":"超级链接"},{"type":"Text","value":" - "},{"type":"CodeSpan","value":"超级链接"}]}]},{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"type":"Link","value":"mailto:username@gmail.com","title":"username@gmail.com"},{"type":"Text","value":" - "},{"type":"CodeSpan","value":"username@gmail.com"}]}]}]},{"type":"Heading","value":"h3","children":[{"type":"Text","value":"提及用户"}]},{"flag":"Paragraph","children":[{"type":"Text","value":"@vanessa 通过 "},{"type":"CodeSpan","value":"@user"}{"type":"Text","value":" 可以在内容中提及用户,被提及的用户将会收到系统通知。"}]},{"flag":"Blockquote","children":[{"flag":"Paragraph","chi ldren":[{"type":"Text","value":"NOTE:"}]},{"type":"List","value":"ol","children":[{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"type":"Text","value":"@用户名之后需要有一个空格"}]}]},{"flag":"ListItem","children":[{"flag":"Paragraph","children":[{"type":"Text","value":"新手没有艾特的功能权限"}]}]}]}]},{"type":"Heading","value":"h3","children":[{"type":"Text","value":"表情符号 Emoji"}]},{"flag":"Paragraph","children":[{"type":"Text","value":"支持大部分标准的表情符号,可使用输入法直接输入,也可手动输入字符格式。通过输入 "},{"type":"CodeSpan","value":":"}{"type":"Text","value":" 触发自动完成,可在个人设置中"},{"type":"Link","value":"https://ld246.com/settings/function","title":"设置常用表情"},{"type":"Text","value":"。"}]}]

@88250
Copy link
Collaborator

88250 commented Aug 8, 2022

关联 88250/lute#166

@GCM6
Copy link
Author

GCM6 commented Aug 8, 2022

OK

@88250 88250 changed the title RenderJSON 导出的JSON不正确 RenderJSON 导出的 JSON 不正确 Aug 8, 2022
@88250 88250 self-assigned this Aug 8, 2022
@88250 88250 added this to the 3.8 milestone Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants