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 函数返回的数组有的会丢失逗号 #166

Closed
chenghongyao opened this issue Mar 16, 2022 · 1 comment
Closed

RenderJSON 函数返回的数组有的会丢失逗号 #166

chenghongyao opened this issue Mar 16, 2022 · 1 comment

Comments

@chenghongyao
Copy link

chenghongyao commented Mar 16, 2022

描述问题 Describe the problem

使用 lute.min.js中的 lute.RenderJSON() 函数返回的结果里有的数组会丢失逗号。

markdown 原文:

这是行内$a=b$公式

得到的结果是:

[{"flag":"Paragraph","children":[{"type":"Text","value":"这是行内"},{"type":"InlineMath","value":"a=b"}{"type":"Text","value":"公式"}]}]

InlineMathText 对象中间丢失了逗号,导致JSON解析错误

期待的结果 Expected result

返回合法的 JSON 数组

截屏或录像 Screenshot or video

版本环境 Version environment

  • 版本 Version:1.7.3
  • 操作系统 Operating system:Window 11,
  • node版本: v16.13.1
  • 浏览器(如果使用)Browser (if used):

其他信息 Other information

@88250
Copy link
Owner

88250 commented Aug 8, 2022

#180 中使用新的 JSON 渲染方案。

@88250 88250 closed this as completed Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants