Twig href value inside a block not parsed


#1

Hi, some news about this bug, in archive but still alive?

A summary as of today:

Inside a markdown file, set active both markdown and twig process,

Add this

<div><a href="{{ mylink }}">click me!</a></div>

See how the href is not parsed…

But move your ‘a’ outside your ‘div’ and it works!

Thanks everybody!


#2

Should be an easy fix, you should add a filter,

<div><a href="{{ mylink }}">click me!</a></div>

should become

<div><a href="{{ mylink | raw }}">click me!</a></div>

Hope it helps :slight_smile: