当我在段落中添加链接时遇到问题。Jade模板 - 使用URL作为链接标签
玉模板语法:
p Here is link to #[a(href='https://google.com/') google link]
结果是:这里是链接到google link
我要的是:这里是链接到https://google.com/
我试过这个语法,但它不起作用:
p Here is link to #[a(href='https://google.com/') https://google.com/]
如果链接显示有http://
或https://
,则会发生错误。
感谢您的帮助!
这似乎工作:'#[a(href ='https://google.com/')google.com]'尽管您将会忽略标签中的http://部分。 – Waylan
Yeap,问题来了,因为'http://'或'https:// –