S
S
Svyatoslav Khusamov2016-06-17 23:03:24
Pug
Svyatoslav Khusamov, 2016-06-17 23:03:24

Why doesn't the contents of a variable pass through a filter in Jade?

Here is my template:

block content
  h1= title
  :markdown-it #{message}

I tried different options:
:markdown-it= message
:markdown-it!= message
:markdown-it message

:markdown-it
  #{message}

As a result, the content of `message` falls out in the same form, without filtering.
At the time, the following code works:
:markdown-it
  # Markdown
  I often like including markdown documents.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question