An mdformat plugin for mkdocs.
Project description
mdformat-mkdocs
An mdformat plugin for mkdocs.
Warning
This is an initial proof of concept. Non-list items nested within a list are not properly handled (i.e. nested code blocks, quotes, etc.). Please open an issue and share examples that aren't properly supported!
Usage
Add this package wherever you use mdformat and the plugin will be auto-recognized. No additional configuration necessary. See additional information on mdformat plugins here
Pre-commit
repos:
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
additional_dependencies:
- mdformat-mkdocs
pipx
pipx install mdformat
pipx inject mdformat mdformat-mkdocs
Caveats
- All indents are converted to 4-spaces
- This plugin converts all bulleted items to dashes and numerals to
1.
See the example test files, ./tests/pre-commit-test.md and ./tests/fixtures.md
Contributing
See CONTRIBUTING.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mdformat_mkdocs-0.0.1.tar.gz.
File metadata
- Download URL: mdformat_mkdocs-0.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a84c22371dcc19d6c2fb762d8883f0ce70d6d6ab7d37d636074ed27f2219e9c
|
|
| MD5 |
4e6232fafb34d5a7c1ec823179d8497f
|
|
| BLAKE2b-256 |
32a066cb07c1aaae1a26f215e9c6aa2ab98f7a8cb136677c6eee6742af923da4
|
File details
Details for the file mdformat_mkdocs-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mdformat_mkdocs-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5785f6a4d3913a433afce7c4ae7e8f52577af1c36c98c9e8bad25ab4f803bfa
|
|
| MD5 |
68c7ce3a8eae6e6f0b653bc8dce8af81
|
|
| BLAKE2b-256 |
14571c47aa4696177de6e4c4ff9fdc62331a128d6b8ae54f13bfa1f6a0f84d69
|