Skip to content

Feature request: run files in succession #473

@dlesbre

Description

@dlesbre

I'm writing a fairly long tutorial using mld files and would like to check the code blocks in mdx. Unfortunately, if I split my tutorial in multiple files, it does not seem possible to have one file pick up where the a previous file left off. It would be nice to have this feature, for example with a special syntax in the dune stanza:

(mdx
   (files (sequence chapter1.mld chapter2.mld) file_not_in_sequence.md))

One workaround is to move all my code to a separate .ml file and then have the code blocks synced to that file via the file-sync option. However, this doesn't work if I wish to have toplevel output among my code blocks.

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