fix: match all <details> variants in detailsStart

This commit is contained in:
Algorithm5838 2026-04-03 00:42:13 +03:00
parent b89019a8e1
commit f8dafd8366

View file

@ -60,7 +60,7 @@ function detailsTokenizer(src: string) {
}
function detailsStart(src: string) {
return src.match(/^<details>/) ? 0 : -1;
return src.match(/^<details[\s>\/]/) ? 0 : -1;
}
function detailsRenderer(token: any) {