Skip to content

Commit

Permalink
Do not call markdownify in alert partial
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zecakeh committed Nov 1, 2024
1 parent 0ef87aa commit a4306c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
{{ $omit_title := .omit_title }}

<div class="alert {{ $type }} {{ if $omit_title }}omit-title{{end}}" role="alert">
{{ $content | markdownify }}
{{ $content }}
</div>

0 comments on commit a4306c3

Please sign in to comment.