mirror of
https://github.com/fmhy/edit.git
synced 2025-07-29 23:32:17 +10:00
fix(transformer): remove extraneous spacing
This commit is contained in:
parent
8ec6c6a357
commit
e1e624e29d
1 changed files with 2 additions and 2 deletions
|
@ -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:::')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue