-
Notifications
You must be signed in to change notification settings - Fork 2
Indent setting to work with mdformat-mkdocs #12
Copy link
Copy link
Open
Description
In my current pre-commit file, I'm running mdformat twice, once with toc and once with mkdocs so that the lists generated have 4-space indents to comply with the mkdocs norm.
Current pre-commit
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
name: Format Markdown
entry: mdformat # Executable to run, with fixed options
language: python
types: [markdown]
args: [--wrap, "80", --number]
additional_dependencies:
- mdformat-toc
# run twice so that the TOC is updated to 4-indent
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
name: Format Markdown
entry: mdformat # Executable to run, with fixed options
language: python
types: [markdown]
args: [--wrap, "80", --number]
additional_dependencies:
- mdformat-mkdocsIs it possible to add --indent X to Opts? Would the maintenance team be interested in a PR?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels