We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/api/block/getBlockKramdown
/api/block/getBlockKramdown 支持导出 span 元素样式
通过块引实现脚注,想通过导出kramdown,将块引锚文本变为脚注编号
发现,目前/api/block/getBlockKramdown获得的data和导出模板得到的data并不一致 /api/block/getBlockKramdown
'事<sup>((20241118190659-8v4a45p "注"))</sup>{: style="--memo: 1"}实上<sup>((20241118190702-rywdn7p "注"))</sup>{: style="--memo: 1"}\n{: id="20241118180021-1hva1qs" updated="20241118190702"}'
导出模板
事<span data-type="block-ref sup" data-subtype="s" data-id="20241118190659-8v4a45p">注</span>{: style="--memo: 1"}实上<span data-type="block-ref sup" data-subtype="s" data-id="20241118190702-rywdn7p">注</span>{: style="--memo: 1"} {: id="20241118180021-1hva1qs"}
如果/api/block/getBlockKramdown得到的内容,使用/api/block/updateBlock来更新块,块引样式就会消失
let data = { "dataType": "markdown", "data": res.data.kramdown, "id": "20241118180021-1hva1qs" } await fetchSyncPost('/api/block/updateBlock', data);
而使用模板导出的kramdown则不会
/api/block/getBlockKramdown 支持导出span元素样式
可以直接获取文档的DOM
No response
The text was updated successfully, but these errors were encountered:
发现如果是静态锚文本的块引粘贴就有问题,动态锚文本的块引就没问题
静态锚文本<sup>((20241119112943-2u0qmkw "20241119 11:29:43"))</sup> 动态锚文本<sup>((20241119112943-2u0qmkw '20241119 11:29:43'))</sup>
Sorry, something went wrong.
增加一个参数 mode:
mode
md
textmark
🎨 Improve kernel API /api/block/getBlockKramdown #13183
371c64c
88250
No branches or pull requests
/api/block/getBlockKramdown 支持导出 span 元素样式
In what scenarios do you need this feature?
通过块引实现脚注,想通过导出kramdown,将块引锚文本变为脚注编号
发现,目前/api/block/getBlockKramdown获得的data和导出模板得到的data并不一致
/api/block/getBlockKramdown
导出模板
如果/api/block/getBlockKramdown得到的内容,使用/api/block/updateBlock来更新块,块引样式就会消失
而使用模板导出的kramdown则不会
Describe the optimal solution
/api/block/getBlockKramdown 支持导出span元素样式
Describe the candidate solution
可以直接获取文档的DOM
Other information
No response
The text was updated successfully, but these errors were encountered: