Do not call markdownify in alert partial

This causes issues for links as the method doesn't have
the right context to resolve them.
The content is already markdownified because of the `%` syntax of the shortcode
that calls it, and it has the right context.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-10-24 16:46:32 +02:00
parent 0ef87aa34f
commit a4306c382a
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D

View file

@ -16,5 +16,5 @@
{{ $omit_title := .omit_title }} {{ $omit_title := .omit_title }}
<div class="alert {{ $type }} {{ if $omit_title }}omit-title{{end}}" role="alert"> <div class="alert {{ $type }} {{ if $omit_title }}omit-title{{end}}" role="alert">
{{ $content | markdownify }} {{ $content }}
</div> </div>