Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commitaf50f0f

Browse files
committed
fix highlighting delimiter
1 parent54bf5a8 commitaf50f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/lib/server/markdown.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function escape(html) {
3232
constdelimiter_substitutes={
3333
'+++':' ',
3434
'---':' ',
35-
'===':' '
35+
':::':' '
3636
};
3737

3838
/**
@@ -69,7 +69,7 @@ marked.use({
6969
}
7070
returnprefix+tabs;
7171
})
72-
.replace(/([+=-]{3})/g,(_,delimiter)=>{
72+
.replace(/([+:-]{3})/g,(_,delimiter)=>{
7373
returndelimiter_substitutes[delimiter];
7474
})
7575
.replace(/\*\\\//g,'*/');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp