mirror of
https://github.com/fmhy/edit.git
synced 2026-01-20 15:03:57 +00:00
fix(transformer): remove extraneous spacing
This commit is contained in:
@@ -331,8 +331,8 @@ export function transform(text: string): string {
|
||||
.replace(/####/g, '###')
|
||||
// Replace emojis
|
||||
.replace(/⭐/g, ':star:')
|
||||
.replace(/🌐/g, ':globe-with-meridians: ')
|
||||
.replace(/↪/g, ':repeat-button: ')
|
||||
.replace(/🌐/g, ':globe-with-meridians:')
|
||||
.replace(/↪/g, ':repeat-button:')
|
||||
// Replace note/warning/tip
|
||||
.replace(/^\*\*Note\*\* - (.+)$/gm, ':::tip\n$1\n:::')
|
||||
.replace(/^\* \*\*Note\*\* - (.+)$/gm, ':::tip\n$1\n:::')
|
||||
|
||||
Reference in New Issue
Block a user