You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ An [mdformat](https://github.com/executablebooks/mdformat) plugin for [mkdocs](h
11
11
12
12
## Usage
13
13
14
-
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](https://mdformat.readthedocs.io/en/stable/users/plugins.html)
14
+
Add this package wherever you use `mdformat` and the plugin will be auto-recognized. No additional configuration necessary. For additional information on plugins, see [the official `mdformat`documentation here](https://mdformat.readthedocs.io/en/stable/users/plugins.html)
15
15
16
-
Tip: this package specifies an "extra" (`recommended`) for plugins that work well with mkdocs:
16
+
Tip: this package specifies an "extra" (`'recommended'`) for plugins that work well with mkdocs:
- This plugin converts all bulleted items to dashes (`-`) and numerals to `1.`
56
-
57
-
See the example test files, [./tests/pre-commit-test.md](https://raw.githubusercontent.com/KyleKing/mdformat-mkdocs/main/tests/pre-commit-test.md) and [./tests/fixtures.md](https://raw.githubusercontent.com/KyleKing/mdformat-mkdocs/main/tests/fixtures.md)
58
-
59
-
## Configuration
52
+
## CLI Options
60
53
61
54
`mdformat-mkdocs` adds the CLI argument `--align-semantic-breaks-in-numbered-lists` to optionally align line breaks in numbered lists to 3-spaces. If not specified, the default of 4-indents is followed universally.
62
55
@@ -70,6 +63,15 @@ See the example test files, [./tests/pre-commit-test.md](https://raw.githubuserc
70
63
three spaces deep
71
64
```
72
65
66
+
Note: the `align-semantic-breaks-in-numbered-lists` setting is not supported in the configuration file yet (https://github.com/executablebooks/mdformat/issues/378)
67
+
68
+
## Caveats
69
+
70
+
- All indents are converted to 4-spaces
71
+
- This plugin converts all bulleted items to dashes (`-`) and numerals to `1.`
72
+
73
+
See the example test files, [./tests/pre-commit-test.md](https://raw.githubusercontent.com/KyleKing/mdformat-mkdocs/main/tests/pre-commit-test.md) and [./tests/fixtures.md](https://raw.githubusercontent.com/KyleKing/mdformat-mkdocs/main/tests/fixtures.md)
74
+
73
75
## Contributing
74
76
75
77
See [CONTRIBUTING.md](https://github.com/KyleKing/mdformat-mkdocs/blob/main/CONTRIBUTING.md)
0 commit comments