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

Configure default language for fenced code blocks #438

Open
varac opened this issue May 5, 2024 · 1 comment
Open

Configure default language for fenced code blocks #438

varac opened this issue May 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@varac
Copy link

varac commented May 5, 2024

Context

When reformatting indented code blocks, I'd like to have an option to set the default language added to the fenced code block that mdformat creates.
I habe a lot of old documentation with indeded code blocks, and 99% of them are sh lang, which I manually need to add after reformatting.

Proposal

Add an option to the config file like:

fenced_lang = sh

Which will automatically use

```sh 

instead of

```

when reformatting indented code blocks.

Tasks and updates

No response

@varac varac added the enhancement New feature or request label May 5, 2024
Copy link

welcome bot commented May 5, 2024

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant