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
`mdformat-mkdocs` adds the CLI argument `--align-semantic-breaks-in-lists` to optionally align line breaks in numbered lists to 3-spaces. If not specified, the default of 4-indents is followed universally.
110
+
`mdformat-mkdocs` adds the CLI arguments:
111
111
112
-
```txt
113
-
# with: mdformat
114
-
1. Semantic line feed where the following line is
115
-
three spaces deep
112
+
-`--align-semantic-breaks-in-lists` to optionally align line breaks in numbered lists to 3-spaces. If not specified, the default of 4-indents is followed universally.
116
113
117
-
# vs. with: mdformat --align-semantic-breaks-in-lists
118
-
1. Semantic line feed where the following line is
119
-
three spaces deep
120
-
```
114
+
```txt
115
+
# with: mdformat
116
+
1. Semantic line feed where the following line is
117
+
three spaces deep
118
+
119
+
# vs. "mdformat --align-semantic-breaks-in-lists"
120
+
1. Semantic line feed where the following line is
121
+
three spaces deep
122
+
```
123
+
124
+
- `--ignore-missing-references` if set, do not escape link references when no definition is found. This is required when references are dynamic, such as with python mkdocstrings
121
125
122
-
Note: the `align-semantic-breaks-in-lists` setting is not supported in the configuration file yet (https://github.com/executablebooks/mdformat/issues/378)
126
+
You can also use the toml configuration (https://mdformat.readthedocs.io/en/stable/users/configuration_file.html):
"""Add options to the mdformat CLI, to be stored in `mdit.options["mdformat"]`."""
56
-
parser.add_argument(
55
+
Stored in `mdit.options["mdformat"]["plugin"]["tables"]`
56
+
57
+
"""
58
+
group.add_argument(
57
59
"--align-semantic-breaks-in-lists",
58
60
action="store_true",
59
61
help="If specified, align semantic indents in numbered and bulleted lists to the text", # noqa: E501
60
62
)
61
-
parser.add_argument(
63
+
group.add_argument(
62
64
"--ignore-missing-references",
63
65
action="store_true",
64
66
help="If set, do not escape link references when no definition is found. This is required when references are dynamic, such as with python mkdocstrings", # noqa: E501
0 commit comments