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
I recently ran into an issue with mdx. I have an .md file containing several ocaml code snippets pointing to different parts of an .ml file. I'm using mdx with --direction to-ml and for some reasons, it gets the first right but doesn't write the other ones to the .ml file.
My first guess was that the first part starts at the file's toplevel but introduces the declaration of a submodule and the subsequent parts all are within that submodule. I thought this could be the reason for the issue because [@@@...] attributes are structure_items of a different part of the AST but I doubt mdx actually relies on that.
You can take a look at the .md file here and the current target file here. Running dune runtest there result in the diff action on the .ml file suggesting to remove anything from [@@@part "2"] (included) to the end of the file. I'm not sure exactly why this is happening. I'll to reproduce that in a simpler example if I find the time to!
The text was updated successfully, but these errors were encountered:
I recently ran into an issue with mdx. I have an
.md
file containing several ocaml code snippets pointing to different parts of an.ml
file. I'm usingmdx
with--direction to-ml
and for some reasons, it gets the first right but doesn't write the other ones to the.ml
file.My first guess was that the first part starts at the file's toplevel but introduces the declaration of a submodule and the subsequent parts all are within that submodule. I thought this could be the reason for the issue because
[@@@...]
attributes are structure_items of a different part of the AST but I doubtmdx
actually relies on that.You can take a look at the
.md
file here and the current target file here. Runningdune runtest
there result in thediff
action on the.ml
file suggesting to remove anything from[@@@part "2"]
(included) to the end of the file. I'm not sure exactly why this is happening. I'll to reproduce that in a simpler example if I find the time to!The text was updated successfully, but these errors were encountered: