in many situations |markdownify is usable. But when it comes to more complex situations, the filter is not enough.
If I want to call something else instead of rendering a variable, you can't use it:
This works:
{{ my_var | markdownify }}
This doesn't:
{% custom_templatetag request.user | markdownify %}
in many situations
|markdownify
is usable. But when it comes to more complex situations, the filter is not enough. If I want to call something else instead of rendering a variable, you can't use it:Sure, this isn't correct template syntax.
What would work (alongside {% blocktranslate %}):
It would be relaively easy to implement that, you could reuse the filter internally.