解析 URL 并在纯文本 Jade 上创建链接

Parse URL and create Links On Plain-Text Jade

我得到的是纯文本,其中可能有 URL。

例如 : 一天学会abc www.englishspeaking.com

我在这里吃 URL。我要转换它有一个link。我正在使用 Jade 模板引擎。有没有办法在 Jade 模板引擎中做到这一点。

像这样使用 markdown 过滤器

:markdown
  this is the start of the para.
  [a link](http://example.com)
  and this is the rest of the paragraph.

您可以为此使用已构建的 npm。像这样,我找到了 anchrome 并且它也对我有用