diff options
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/arena.html | 3 | ||||
| -rw-r--r-- | assets/playground.html | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/assets/arena.html b/assets/arena.html index 2296de2..cf25dc7 100644 --- a/assets/arena.html +++ b/assets/arena.html @@ -1047,9 +1047,8 @@ } }, renderer(token) { - const isOpen = !token.raw.endsWith('</think>'); const text = '<p>' + token.text.trim().replace(/\n+/g, '</p><p>') + '</p>'; - return `<details ${isOpen ? "open" : ""} class="think"> + return `<details open class="think"> <summary>Deeply thought</summary> <blockquote>${text}</blockquote> </details>`; diff --git a/assets/playground.html b/assets/playground.html index 06e2e62..34379e4 100644 --- a/assets/playground.html +++ b/assets/playground.html @@ -1528,9 +1528,8 @@ } }, renderer(token) { - const isOpen = !token.raw.endsWith('</think>'); const text = '<p>' + token.text.trim().replace(/\n+/g, '</p><p>') + '</p>'; - return `<details ${isOpen ? "open" : ""} class="think"> + return `<details open class="think"> <summary>Deeply thought</summary> <blockquote>${text}</blockquote> </details>`; |
