Vanessa 2022-09-17 09:37:18 +08:00
parent 70c520ac15
commit 0fce368d10
2 changed files with 19 additions and 1 deletions

View file

@ -39,7 +39,7 @@ export class Preview {
const linkAddress = event.target.getAttribute("href");
if (linkAddress.startsWith("#")) {
// 导出预览模式点击块引转换后的脚注跳转不正确 https://github.com/siyuan-note/siyuan/issues/5700
// 对于超链接锚点不做任何处理
previewElement.querySelector(linkAddress).scrollIntoView();
event.stopPropagation();
event.preventDefault();
return;