最佳答案
经过谷歌搜索后,我发现有人使用 CSS 添加了该行为,您可以在 https://github.com/ariya/phantomjs/issues/10196 中阅读它。添加的CSS是:
a[href]:after {
content: "( " attr(href) " )";
text-decoration: underline;
margin-left: 2px;
color: #428bca;}
然后,为了避免这种情况,您可以在 CSS 中包含一条规则来清理内容规则:
a[href]:after { content : "" }
然后就可以正常工作了。您还可以在https://github.com/alanshaw/markdown-pdf/issues/63中阅读更多相关信息。
关于javascript - 如何隐藏使用 PhantomJS 创建 PDF 的链接 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40668475/