mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-06 08:18:53 +00:00
fix: match all <details> variants in detailsStart
This commit is contained in:
parent
b89019a8e1
commit
f8dafd8366
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue