diff --git a/admin/static/js/common.js b/admin/static/js/common.js
index fe6fbe94..62fdc7ca 100644
--- a/admin/static/js/common.js
+++ b/admin/static/js/common.js
@@ -211,7 +211,7 @@ angular.module("FICApp")
-
+
`
diff --git a/admin/sync/exercice_keys.go b/admin/sync/exercice_keys.go
index fc722555..4c028d95 100644
--- a/admin/sync/exercice_keys.go
+++ b/admin/sync/exercice_keys.go
@@ -265,6 +265,14 @@ func buildExerciceFlag(i Importer, exercice *fic.Exercice, flag ExerciceFlag, nl
}
}
+ if len(flag.Help) > 0 {
+ if mdhelp, err := ProcessMarkdown(i, flag.Help, exercice.Path); err != nil {
+ errs = append(errs, fmt.Sprintf("%q: flag #%d: unable to parse property help as Markdown: %s", path.Base(exercice.Path), nline+1), err.Error())
+ } else {
+ flag.Help = mdhelp[3 : len(mdhelp)-4]
+ }
+ }
+
if flag.Type == "key" || strings.HasPrefix(flag.Type, "number") || flag.Type == "text" || flag.Type == "ucq" || flag.Type == "radio" || flag.Type == "vector" {
addedFlag, choices, berrs := buildKeyFlag(exercice, flag, nline+1, "Flag")
if len(berrs) > 0 {
diff --git a/frontend/ui/src/components/FlagKey.svelte b/frontend/ui/src/components/FlagKey.svelte
index 4c0c02e1..b4287f84 100644
--- a/frontend/ui/src/components/FlagKey.svelte
+++ b/frontend/ui/src/components/FlagKey.svelte
@@ -195,7 +195,7 @@
{/if}
{/each}
{#if flag.help}
- {flag.help}
+ {@html flag.help}
{/if}
{:else}