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

Mdoc's Modifiers Don't Work on Indented Code Blocks #837

Open
khajavi opened this issue Feb 1, 2024 · 1 comment
Open

Mdoc's Modifiers Don't Work on Indented Code Blocks #837

khajavi opened this issue Feb 1, 2024 · 1 comment

Comments

@khajavi
Copy link

khajavi commented Feb 1, 2024

Description:

When utilizing Mdoc's modifiers in documentation, it has been observed that these modifiers fail to apply correctly to indented code blocks. This issue significantly impacts the ability to convey precise information and formatting in documentation where code snippets are indented for clarity.

image

Expected Behavior:

The above code blocks are expected to be type-safe compiled using mdoc.

Current Behavior:

Mdoc is unable to identify the code blocks mentioned above.

Tasks

No tasks being tracked yet.
@tgodzik
Copy link
Contributor

tgodzik commented Feb 6, 2024

Thanks for reporting! I can confirm this doesn't work currently. Would be great to support it, if anyone is willing to work on it I can try to help out, but the codebase is not large, so this shouldn't be too difficult

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

2 participants