web/elements: fix flaky formatting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
027ca88d83
commit
c28f3ab225
|
@ -40,7 +40,7 @@ export class Markdown extends AKElement {
|
|||
const admonitionStart = /:::(\w+)<br\s\/>/gm;
|
||||
const admonitionEnd = /:::/gm;
|
||||
return input
|
||||
.replaceAll(admonitionStart, "<ak-alert level=\"$1\">")
|
||||
.replaceAll(admonitionStart, "<ak-alert level='$1'>")
|
||||
.replaceAll(admonitionEnd, "</ak-alert>");
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue