Skip to content

$MDX delimiters in ocaml cut off any code on the same line #374

@ceastlund

Description

@ceastlund

If I write code like this:

(* $MDX part-begin=something *)
type t =
  | Foo
  | Bar (* $MDX part-end *)

Then what shows up in the MDX is:

type t =
  | Foo

This cuts off | Bar. Granted, a solution is to always put the comment on a separate line. But ocamlformat doesn't know this, for example. It would be better if mdx always preserved all the code between delimiters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions