You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you use ;; in the middle of an mdx code block you get an error, but only inconsistently:
This is OK:
```ocaml
type t = A;;
```_
This gives a parse error:
```ocaml
module M = struct
type t = A;;
end
```_
```mdx-error
Error: Syntax error: 'end' expected
This 'struct' might be unmatched
Error: Syntax error
```_
(The ```_s above are just meant to get github formatting to cooperate.)
I think mdx is chopping off input at the first ;; and attempting to parse it. Maybe it could generate a better error message and suggest removing the ;; if that is a suffix of the input.
The text was updated successfully, but these errors were encountered:
Currently if you use
;;
in the middle of an mdx code block you get an error, but only inconsistently:(The
```_
s above are just meant to get github formatting to cooperate.)I think mdx is chopping off input at the first
;;
and attempting to parse it. Maybe it could generate a better error message and suggest removing the;;
if that is a suffix of the input.The text was updated successfully, but these errors were encountered: