Is there a way to have mdx preprocess the code in blocks given a given ppx? There is this post but it doesn’t quite answer the question
The only documentation I can find about mdx is its own readme, but it does not explain how to add labels to code blocks in mld files, it only explains how to do so in md files. Is it possible to so?
Hi, the technique I had mentioned works in markdown files, but I’m not sure if it’d work in mld files, I have vague memory of them having slightly different behavior when I tried.
Here’s an example where the code mentioned in the README has been compiled, so no mistakes could be present in the documentation, which is what I was after (I’m not sure it answers your question though)
Other things I have been stuck with mdx at earlier points, which I’d be interested with in case you end up looking into these parts (haven’t tried in a while):