Skip to content

Commit abfcdac

Browse files
authored
Update transformer.ts
1 parent 4cbec4d commit abfcdac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/.vitepress/transformer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export function transform(text: string): string {
224224
_text = replaceUnderscore(_text)
225225
.replace(/\/#(\d)/g, '/#_$1') // Prefix headings starting with numbers
226226
.replace(/#(\d)/g, '#_$1') // Prefix headings starting with numbers
227-
.replace(/\/#/g, '#')
227+
.replace(/(\]\(\s*)\/\s*(\#[^)\s]*?\s*\))/g, '$1$2')
228228
.replace(/\*\*\*\n\n/gm, '')
229229
.replace(/\*\*\*\n/gm, '')
230230
.replace(/# /g, '##')

0 commit comments

Comments
 (0)