Jade模板:如何在UL中创建超链接,并对超链接进行描述

Lee*_*Lee 4 node.js pug

我正在尝试创建一个包含超链接的列表.每个列表项在一行中包含主题和对该主题的简单描述.我想要包含主题的超链接,但不包括描述.我的所作所为如下.

ul#subjects
    li
        a(href="#") Subject: Here is the description of the subject
Run Code Online (Sandbox Code Playgroud)

链接工作正常但它涵盖了整行文本.如何关闭超链接,使其在HTML中变为如下所示?请注意,超链接不包含":".

<ul id='subjects'>
    <li><a href='#'>Subject</a>: Here is is the description of the subject
</ul>
Run Code Online (Sandbox Code Playgroud)

谢谢.:)

Rav*_*avi 8

用于|在Jade中显示HTML文本

例如

ul#subjects
  li
    a(href="#") Subject
    | : Here is the description of the subject
Run Code Online (Sandbox Code Playgroud)