Removed fallbacks

This commit is contained in:
Hugo 2024-08-06 13:50:13 +00:00
parent 7ce91ca8cb
commit 0df53200fa

View file

@ -334,10 +334,8 @@ export function transform(text: string): string {
.replace(/🌐/g, ':globe-with-meridians: ') .replace(/🌐/g, ':globe-with-meridians: ')
.replace(/↪/g, ':repeat-button: ') .replace(/↪/g, ':repeat-button: ')
// Replace note/warning/tip // Replace note/warning/tip
.replace(/^\*\*Note\*\* - (.+)$/gm, ':::tip\n$1\n:::')
.replace(/^\* \*\*Note\*\* - (.+)$/gm, ':::tip\n$1\n:::') .replace(/^\* \*\*Note\*\* - (.+)$/gm, ':::tip\n$1\n:::')
.replace(/^Note - (.+)$/gm, ':::tip\n$1\n:::') .replace(/^Note - (.+)$/gm, ':::tip\n$1\n:::')
.replace(/^\*\*Warning\*\* - (.+)$/gm, ':::warning\n$1\n:::')
.replace(/^\* \*\*Warning\*\* - (.+)$/gm, ':::warning\n$1\n:::') .replace(/^\* \*\*Warning\*\* - (.+)$/gm, ':::warning\n$1\n:::')
.replace(/^\*\s([^*])/gm, '- $1') .replace(/^\*\s([^*])/gm, '- $1')
// Replace links // Replace links