web/elements: fix flaky formatting

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-19 12:58:22 +01:00
parent 027ca88d83
commit c28f3ab225
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export class Markdown extends AKElement {
const admonitionStart = /:::(\w+)<br\s\/>/gm; const admonitionStart = /:::(\w+)<br\s\/>/gm;
const admonitionEnd = /:::/gm; const admonitionEnd = /:::/gm;
return input return input
.replaceAll(admonitionStart, "<ak-alert level=\"$1\">") .replaceAll(admonitionStart, "<ak-alert level='$1'>")
.replaceAll(admonitionEnd, "</ak-alert>"); .replaceAll(admonitionEnd, "</ak-alert>");
} }