mdformat
mdformat copied to clipboard
CommonMark compliant Markdown formatter
updates: - [github.com/PyCQA/isort: c8ab4a5b21bac924d106e3103dd7c979fdd0f9bc → 0a09c783808cfe77bb3269250f663ff733d23302](https://github.com/PyCQA/isort/compare/c8ab4a5b21bac924d106e3103dd7c979fdd0f9bc...0a09c783808cfe77bb3269250f663ff733d23302) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b → 831207fd435b47aeffdf6af853097e64322b4d44](https://github.com/psf/black-pre-commit-mirror/compare/8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b...831207fd435b47aeffdf6af853097e64322b4d44) - [github.com/pre-commit/pre-commit: b74a22d96cca546b8e0bb9f68f1d7d8565205b65 → 1af6c8fa9502336c6977c2ff3e79185bd97a6e57](https://github.com/pre-commit/pre-commit/compare/b74a22d96cca546b8e0bb9f68f1d7d8565205b65...1af6c8fa9502336c6977c2ff3e79185bd97a6e57)
### Context It appears mdformat never adds line breaks within a link description. This can lead to excessively long lines. Example: ``` [This is a very extremely absolutely excessively long...
Closes #432 - CLI now has option `--toml_file` to specify a path to a `.mdformat.toml` file - file name must be `.mdformat.toml` - Partial path supplied to CLI will resolve...
Currently, a thematic break (`hr`) will always be 70 characters. This PR makes the thematic break respect the given wrap length. - If the user gives no wrap length, 70...
### Describe the bug The AST check triggers on ```markdown * * ``` ### Reproduce the bug ```sh printf -- '* *' | pipx run mdformat - ``` ### List your environment...
### Describe the bug **context** When I run `mdformat` on this text: `When using *target=_blank* also adding *rel="noopener"* to the tag ensures that new page runs in a separate process.`...
This pull request introduces the `--config ` command-line option, allowing users to explicitly define the path to their TOML configuration file, overriding the default recursive search for `.mdformat.toml`. This feature...
### Context ## Context ### Provide background to help others understand this issue. The current configuration loading logic relies on **recursive file tree traversal** to find a file named `.mdformat.toml`...
### Context I have a GitHub issue template that contains a markdown block. I'd like to be able to format that block as well using mdformat. Here's the file contents...
### Describe the bug **context** running the following doc through `mdformat` with `mdformat-toc` enabled: ```md # Overview ## A heading with\:a colon Some more text ``` Produces this output: ```md...