You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{%import'code/markup.njk'asmarkupwith context%}{%macrooutputCode(name) %}{# output nothing #}
<pre><code>
{%-filtertrim%}{{markup.get(name) }}{%endfilter-%}
</code></pre>
{# output content with 2 blank lines before and after the content #}
<pre><code>
{{-markup.get(name) +'&' | replace('&', '') -}}
</code></pre>
{%endmacro%}{%setstr="html-indentation"%}{# output result #}{{outputCode('html-indentation') }}
When use a filter block inside the macro, nothing comes out. When remove the filter block, the content come out with 2 blank lines both before and after.
The text was updated successfully, but these errors were encountered:
markup.njk:
index.njk:
When use a filter block inside the macro, nothing comes out. When remove the filter block, the content come out with 2 blank lines both before and after.
The text was updated successfully, but these errors were encountered: