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

关注原生标签和属性,你会发现很多意想不到的事情 — sunseekers #61

Open
sunseekers opened this issue Mar 24, 2021 · 3 comments

Comments

@sunseekers
Copy link
Owner

https://sunseekers.github.io/2021/03/04/HTMLAll/

背景有一天CoCo问我,你们阅文公众号文章是怎么产出的,我的回答是基于业务中的问题,讨论学习

@bran-nie
Copy link

bran-nie commented Mar 25, 2021

文章中的外链,尽量不要用 markdown 这个[]()格式,原因在于,它不是新开标签页打开的。可以选择使用 a 标签。我暂时是这样操作的,后续如果有好的方式再告诉你。

我在编写博客时,是在 vscode 中写的文章,因此,我使用了 vscode 的代码片段功能,这样可以便捷的使用 a 标签。同时也不影响用户在阅读博客时,点击外链新开标签页。

@bran-nie
Copy link

但是,GitHub 把 target="_blank" 屏蔽了。。评论也是使用 GitHub 的 Issue,因此,评论里面的 a 标签不支持新开标签页了。

@sunseekers
Copy link
Owner Author

但是,GitHub 把 target="_blank" 屏蔽了。。评论也是使用 GitHub 的 Issue,因此,评论里面的 a 标签不支持新开标签页了。

感谢提醒,下次我写都换成a标签,开心

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

2 participants