Description
Display math blocks with a newline between the delimiters don't render.
To reproduce: send this in a conversation:
$$\begin{aligned}
\end{aligned}$$
The math appears as plain text. Removing the newline makes it work:
$$\begin{aligned}\end{aligned}$$
The regex in marked-katex-extension v5.1.6 doesn't match across newlines
(. without /s flag), so multiline $$ blocks fall through as regular text.
Environment: and web.
Plugins
No response
OpenCode version
1.17.11desktop
Steps to reproduce
1.send this in a conversation:
$$\begin{aligned}
\end{aligned}$$
The math appears as plain text.
2.Removing the newline makes it work:
$$\begin{aligned}\end{aligned}$$
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response
Description
Display math blocks with a newline between the delimiters don't render.
To reproduce: send this in a conversation:
The math appears as plain text. Removing the newline makes it work:
The regex in marked-katex-extension v5.1.6 doesn't match across newlines
(
.without/sflag), so multiline $$ blocks fall through as regular text.Environment: and web.
Plugins
No response
OpenCode version
1.17.11desktop
Steps to reproduce
1.send this in a conversation:
$$\begin{aligned}
\end{aligned}$$
The math appears as plain text.
2.Removing the newline makes it work:
$$\begin{aligned}\end{aligned}$$
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
No response