Skip to content

Commit 303a94e

Browse files
Algorithm5838github-actions[bot]
authored andcommitted
fix: match all <details> variants in detailsStart
1 parent d5e373e commit 303a94e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/utils/marked/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function detailsTokenizer(src: string) {
6060
}
6161

6262
function detailsStart(src: string) {
63-
return src.match(/^<details>/) ? 0 : -1;
63+
return src.match(/^<details[\s>\/]/) ? 0 : -1;
6464
}
6565

6666
function detailsRenderer(token: any) {

0 commit comments

Comments
 (0)