From 14053d20c9215a54437049cd49a68b4edd435eb7 Mon Sep 17 00:00:00 2001 From: Thomas Citharel <tcit@tcit.fr> Date: Fri, 25 May 2018 19:34:36 +0200 Subject: [PATCH] Handle markdown properly in the best choices section Signed-off-by: Thomas Citharel <tcit@tcit.fr> --- tpl/part/vote_table_classic.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index 3ccc43f1..b8b81f1a 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -361,9 +361,9 @@ {$i = 0} <ul class="list-unstyled"> - {foreach $slots as $slot} + {foreach $slots as $i => $slot} {if $best_choices['y'][$i] == $max} - <li><strong>{$slot->title|markdown:true}</strong></li> + <li><strong>{markdown_to_text markdown=$slot->title id=$i}</strong></li> {/if} {$i = $i+1} {/foreach} -- GitLab