The mdx stanza supports (enabled_if):

  $ dune runtest
  File "iftrue.md", line 1, characters 0-0:
  Error: Files _build/default/iftrue.md and
  _build/default/.mdx/iftrue.md.corrected differ.
  [1]
