Skip to content

mktestdocs ignores indented Python code blocks #14

@FlorianWilhelm

Description

@FlorianWilhelm

Hi @koaning, as always, awesome package and thanks for providing it, it's really helpful!

I'm using it in my ultimate-notion project and realised that mktestdocs seems to ignore indented Python code blocks, that I use for instance within admonitions, e.g.

!!! note

    All cells of a table are initialized with an empty string. Therefore, to delete the content of a cell,
    you need to assign an empty string, i.e. `''`. For instance, to delete the first row after the header:

    ```python
    table[1] = ('', '', '')
    ```

It would be awesome if there were an option so that I could also check the code within admonitions. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions