玉模板HTML括号撇号和多行问题

当我使用HTML标签的#[]语法时遇到了一些问题。

以下是我遇到的两个问题:

  1. 使用撇号

     p. #[strong John's strong text] is really strong. 

    错误信息:

    The end of the string was reached with no closing bracket found.]

  2. 使用多行

     p. #[strong This strong text is really really long. This strong text is really really long. This strong text is really really long.] 

    错误信息:

    The end of the string was reached with no closing bracket found.]

我试图通过添加\解决这两个问题,但没有运气。

你可以用'replace'

 ' 

摆脱错误。 所以要回答1,你可以做

 #[strong John's strong text] and it should work as expected. 

对于任何人来说,我已经在Jade的GitHub上打开了一个问题,因为结果是1和2目前都不支持。

链接: https : //github.com/jadejs/jade/issues/1723