We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
/api/block/insertBlock
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的方式可以插入一个无效ID的段落块。
"/api/block/insertBlock" 存入的 markdown为:
\n{: id=${NewNodeID()}}
(没加引号,是一个错误。但服务端也没检查。)
页面中出现无效ID的div : data-node-id="0240111004552-jusidl"
<div data-node-id="0240111004552-jusidl" data-node-index="25" data-type="NodeParagraph" class="p" updated="0240111004552-"> <div contenteditable="true" spellcheck="false"></div> <div class="protyle-attr" contenteditable="false"></div> </div>
export const NewNodeID: () => string = (globalThis as any).Lute.NewNodeID;
一个妥善的响应
No response
- Version: - Operating System: - Browser (if used):
None
The text was updated successfully, but these errors were encountered:
🎨 Improve kernel API /api/block/insertBlock argument checking #10144
caf0717
cf3dbef
9db8172
04214ac
Merge commit '43d0bb1bfe8dedf6e1b9960256b5e35b0b8fb9e9'
854620d
* commit '43d0bb1bfe8dedf6e1b9960256b5e35b0b8fb9e9': (76 commits) 🎨 fix siyuan-note#10159 🎨 Add some database related internal kernel APIs siyuan-note#10160 🎨 siyuan-note#10060 🎨 Improve kernel API `/api/block/insertBlock` argument checking siyuan-note#10144 🎨 Improve kernel API `/api/block/insertBlock` argument checking siyuan-note#10144 🎨 fix siyuan-note#10155 📝 fix siyuan-note#10013 🎨 fix siyuan-note#10013 🎨 Improve export CSV 🐛 Fix av export https://ld246.com/article/1705023091175 🎨 fix siyuan-note#10091 🎨 Update kernel API getIDsByHPath siyuan-note#10091 🎨 Some kernel interface concurrency is no longer controlled to improve performance siyuan-note#10149 🐛 fix siyuan-note#10155 🔊 Add logging 🎨 fix siyuan-note#10118 🎨 siyuan-note#10153 🎨 The production environment will no longer register `/debug/pprof/` siyuan-note#10152 :lipsticks: menu action :lipsticks: card ...
88250
No branches or pull requests
插入markdown的方式可以插入一个无效ID的段落块。
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/block/insertBlock" 存入的 markdown为:
(没加引号,是一个错误。但服务端也没检查。)
页面中出现无效ID的div : data-node-id="0240111004552-jusidl"
export const NewNodeID: () => string = (globalThis as any).Lute.NewNodeID;
Expected result
一个妥善的响应
Screenshot or screen recording presentation
No response
Version environment
Log file
None
More information
No response
The text was updated successfully, but these errors were encountered: