mdformat incorrectly reformats a valid MkDocs Material inline icon link by escaping the square brackets. This breaks the intended syntax and produces invalid Markdown for this use case.
Input(test.md)
[:material-download: Download](../assets/load data.txt){:download="load data" .md-button}
Command
uvx --with mdformat-mkdocs==5.1.4 mdformat test.md
Output
\[:material-download: Download\](../assets/load data.txt){:download="load data" .md-button}
Related links:
https://squidfunk.github.io/mkdocs-material/reference/buttons/
mdformatincorrectly reformats a valid MkDocs Material inline icon link by escaping the square brackets. This breaks the intended syntax and produces invalid Markdown for this use case.Input(test.md)
Command
Output
Related links:
https://squidfunk.github.io/mkdocs-material/reference/buttons/