A `$$math` block whose opening line carries math and whose closing `$$` sits at the end of the last math line parsed as an unclosed flow: micromark-extension-math reads the opening line's text as fence meta and accepts a closing fence only on a line whose content is exactly `$$`. The flow then consumed the following document, and KaTeX rendered the block plus that swallowed text as one error span. Fence meta was also silently dropped because the renderer reads only the math node's value. The compatibility layer's dollar flow now owns every `$$` fence, spans multiple lines, and stops its paragraph-interruption check before the line ending, as the upstream flow does; registering it after `math()` is what gives it that precedence in micromark.
1.3 KiB
1.3 KiB
- banner:
- navigation "Session hierarchy":
- button "Math rendering" [disabled]
- button "More actions":
- img
- button "Open right sidebar":
- img
- tablist:
- tab "Chat" [selected]
- tab "Trajectory"
- navigation "Session hierarchy":
- text: Render this mathematical proof. {{clock}}
- button "Copy":
- img
- heading "Math rendering" [level=2]
- paragraph:
- text: Inline dollar
- math: θ
- text: and backslash
- math: 1 5
- text: .
- math: π 4 < θ < π 2
- math: θ ∈ ( π 4 , π 2 ) . (1)
- math: α + β γ
- table:
- rowgroup:
- row "Symbol Value":
- columnheader "Symbol"
- columnheader "Value"
- row "Symbol Value":
- rowgroup:
- row:
- cell:
- math: θ
- cell:
- math: 1 5
- cell:
- row:
- rowgroup:
- paragraph: MATH_RENDERING_DONE
- button "Copy":
- img
- button "Good response":
- img
- button "Bad response":
- img
- button "Branch into a new conversation":
- img
- button "Ran for {{duration}}":
- img
- text: Ran for {{duration}}
- text: {{clock}}
- textbox "Message or run a task, / commands, @ files or sessions"
- button "Add files or run commands":
- img
- 'button "Access mode, current: Workspace Write"': Workspace Write
- button "Select model, current DeepSeek-V4-Flash":
- text: DeepSeek-V4-Flash
- img
- button "Send message" [disabled]
- button "1 turns 1 steps":
- img
- text: 1 turns 1 steps