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

Valine评论中超链接的target属性 #318

Closed
YexuanXiao opened this issue May 22, 2020 · 3 comments
Closed

Valine评论中超链接的target属性 #318

YexuanXiao opened this issue May 22, 2020 · 3 comments

Comments

@YexuanXiao
Copy link

Valine目前会给评论中的超链接添加 'target="_blank"'属性,这会导致当这个超链接即使是指向本页面的锚点的时候,仍然会重新打开一个新窗口,这显然是不合理的。
希望Valine能取消对超链接添加 target 属性。

@xCss
Copy link
Owner

xCss commented May 22, 2020

已知Bug,下个版本修复,感谢反馈~

@first19326
Copy link

@xCss @YexuanXiao 作者大大您好,我最近正好也遇到了这个问题,本来想直接提交给你的,这块我也找到了一个解决之法,希望可以帮到大大,希望大大不要嫌弃。在循环 vcard 下面的 a 标签的时候,将 find("a") 修改成 find("a:not(.vnick)") 就可以了

@xCss
Copy link
Owner

xCss commented Oct 19, 2021

@xCss xCss closed this as completed Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants