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
Markdown hyperlink parsing exception when using API /api/block/*
to upsert block
#7846
Comments
/api/block/*
to update/inserte block | 使用 API /api/block/*
更新/插入的 markdown 文本解析异常/api/block/*
to update/inserte block
/api/block/*
to update/inserte block /api/block/*
to upsert block
/api/block/*
to upsert block /api/block/*
to upsert block
/api/block/*
to upsert block /api/block/*
to upsert block
…lock/*` to upsert block siyuan-note/siyuan#7846
@88250 {
"dataType": "markdown",
"data": "[`456`](123 \"789\")",
"id": "20211230161520-querkps"
} 导出内容如下所示 [456](123 "789")`` 由此可以看出, 样式嵌套的超链接元素的导出方案应该将标志符设置在超链接锚文本的内部, 锚文本内的标志符使用 粗体 上述内容渲染结果: 粗体 *foo*foo*, 斜体 *foo*foo*, 删除线 |
在 #9998 中会修改超链接和其他标记符的嵌套处理逻辑,将标记符移到 a 外面,例如: |
使用 API
/api/block/*
更新/插入的 markdown 文本解析异常Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
API
/api/block/updateBlock
的请求体如下所示时When the request body of API
/api/block/updateBlock
is shown below对应的块渲染正常, 但是数据库
markdown
字段, 导出内容, API/api/block/getBlockKramdown
返回内容如下所示The corresponding block renders normally, but database field
markdown
, export content, API/api/block/getBlockKramdown
return content as shown belowExpected result
数据库
markdown
字段, 导出内容, API/api/block/getBlockKramdown
返回内容如下所示Database field
markdown
, export content, API/api/block/getBlockKramdown
return content as shown belowScreenshot or screen recording presentation
粗体
**[foo](bar)**
, 斜体*[foo](bar)*
, 删除线~~[foo](bar)~~
, 高亮==[foo](bar)==
, 上标^[foo](bar)^
, 下标~[foo](bar)~
存在同样的问题Bold
**[foo](bar)**
, Italic*[foo](bar)*
, Strikethrough~~[foo](bar)~~
, Mark==[foo](bar)==
, Superscript^[foo](bar)^
, Subscript~[foo](bar)~
have the same problem.Version environment
Log file
无有效信息输出
No valid information output
More information
No response
The text was updated successfully, but these errors were encountered: