Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for preprocessors in the ocaml fragments of mdx files #441

Open
mbarbin opened this issue Nov 13, 2023 · 0 comments
Open

Add support for preprocessors in the ocaml fragments of mdx files #441

mbarbin opened this issue Nov 13, 2023 · 0 comments

Comments

@mbarbin
Copy link

mbarbin commented Nov 13, 2023

I'm trying to use ppx annotations in the ocaml sections of an mdx file, and cannot figure out where to configure it. It seems there is no preprocess field in the (mdx) stanza (looking at 0.4).

```ocaml
let f () = [%sexp "Hello, Sexp!"]
```
```mdx-error
Line 1, characters 14-18:
Error: Uninterpreted extension 'sexp'.
```

On the other hand, using a @@deriving annotation in a type declaration doesn't trigger an error, but seems to be simply ignored.

```ocaml
# type t = int [@@deriving sexp_of]
type t = int
```

Do you confirm this is not supported at the moment? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant