从jade 1.0开始,有一种更简单的方法可以解决此问题,但是不幸的是,我在官方文档中找不到它。
您可以使用以下语法添加内联元素:
#[a.someClass A link!]
因此,没有在ap中插入多行的示例将是这样的:
p: #[span this is the start of the para] #[a(href="http://example.com") a link] #[span and this is the rest of the paragraph]
您还可以执行嵌套的内联元素:
p: This is a #[a(href="#") link with a nested #[span element]]



