diff --git a/tests/format/fixtures/semantic_indent.md b/tests/format/fixtures/semantic_indent.md index 13c5e28..c638251 100644 --- a/tests/format/fixtures/semantic_indent.md +++ b/tests/format/fixtures/semantic_indent.md @@ -258,9 +258,9 @@ Table |:---------------|---------:|:---------------------| | Name | 2| | . -| Label | Rating | Comment | +| Label | Rating | Comment | |:---------------|---------:|:---------------------| -| Name | 2| | +| Name | 2| | . Floating Link @@ -288,17 +288,17 @@ Headings ###### [h6] The smallest heading . -# \[h1\] The largest heading +# [h1] The largest heading -## \[h2\] heading +## [h2] heading -### \[h3\] heading +### [h3] heading -#### \[h4\] heading +#### [h4] heading -##### \[h5\] heading +##### [h5] heading -###### \[h6\] The smallest heading +###### [h6] The smallest heading . Task List / Check List (WARN: escaping is prevented by mdformat-gfm. Tested by py#-hook) @@ -306,8 +306,8 @@ Task List / Check List (WARN: escaping is prevented by mdformat-gfm. Tested by p - [x] #739 - [ ] Add delight to the experience when all tasks are complete :tada: . -- \[x\] #739 - - \[ \] Add delight to the experience when all tasks are complete :tada: +- [x] #739 + - [ ] Add delight to the experience when all tasks are complete :tada: . Footnotes (WARN: escaping is prevented by mdformat-gfm. Tested by py#-hook) @@ -320,9 +320,9 @@ You can also use words, to fit your writing style more closely[^note]. [^note]: Named footnotes will still render with numbers instead of the text but allow easier identification and linking.\ This footnote also has been made with a different syntax using 4 spaces for new lines. . -Here is a simple footnote\[^1\]. +Here is a simple footnote[^1]. -You can also use words, to fit your writing style more closely\[^note\]. +You can also use words, to fit your writing style more closely[^note]. \[^1\]: My reference. \[^note\]: Named footnotes will still render with numbers instead of the text but allow easier identification and linking.\ diff --git a/tests/format/fixtures/text.md b/tests/format/fixtures/text.md index 141e93b..23a466c 100644 --- a/tests/format/fixtures/text.md +++ b/tests/format/fixtures/text.md @@ -257,9 +257,9 @@ Table |:---------------|---------:|:---------------------| | Name | 2| | . -| Label | Rating | Comment | +| Label | Rating | Comment | |:---------------|---------:|:---------------------| -| Name | 2| | +| Name | 2| | . Floating Link @@ -287,17 +287,17 @@ Headings ###### [h6] The smallest heading . -# \[h1\] The largest heading +# [h1] The largest heading -## \[h2\] heading +## [h2] heading -### \[h3\] heading +### [h3] heading -#### \[h4\] heading +#### [h4] heading -##### \[h5\] heading +##### [h5] heading -###### \[h6\] The smallest heading +###### [h6] The smallest heading . Task List / Check List (WARN: escaping is prevented by mdformat-gfm. Tested by py#-hook) @@ -305,8 +305,8 @@ Task List / Check List (WARN: escaping is prevented by mdformat-gfm. Tested by p - [x] #739 - [ ] Add delight to the experience when all tasks are complete :tada: . -- \[x\] #739 - - \[ \] Add delight to the experience when all tasks are complete :tada: +- [x] #739 + - [ ] Add delight to the experience when all tasks are complete :tada: . Footnotes (WARN: escaping is prevented by mdformat-gfm. Tested by py#-hook) @@ -319,9 +319,9 @@ You can also use words, to fit your writing style more closely[^note]. [^note]: Named footnotes will still render with numbers instead of the text but allow easier identification and linking.\ This footnote also has been made with a different syntax using 4 spaces for new lines. . -Here is a simple footnote\[^1\]. +Here is a simple footnote[^1]. -You can also use words, to fit your writing style more closely\[^note\]. +You can also use words, to fit your writing style more closely[^note]. \[^1\]: My reference. \[^note\]: Named footnotes will still render with numbers instead of the text but allow easier identification and linking.\ @@ -1148,7 +1148,7 @@ Example from Ultralytics Documentation (https://github.com/ultralytics/ultralyti - Finally the image region for the bounding box is cropped using index slicing, where the bounds are set using the `[ymin:ymax, xmin:xmax]` coordinates of the detection bounding box. ??? question "What if I want the cropped object **including** the background?" - This is a built in feature for the Ultralytics library. See the `save_crop` argument for [Predict Mode Inference Arguments](../modes/predict.md/#inference-arguments) for details. + This is a built in feature for the Ultralytics library. See the `save_crop` argument for [Predict Mode Inference Arguments](../modes/predict.md/#inference-arguments) for details. ______________________________________________________________________ . @@ -1454,8 +1454,8 @@ Without CLI argument, does not support Python mkdocstring cross-references (http [package.module.object][] [Object][package.module.object] . -\[package.module.object\]\[\] -\[Object\]\[package.module.object\] +[package.module.object][] +[Object][package.module.object] . Do not format lists in code blocks diff --git a/tests/pre-commit-test.md b/tests/pre-commit-test.md index 1d8eeab..144f4b9 100644 --- a/tests/pre-commit-test.md +++ b/tests/pre-commit-test.md @@ -18,17 +18,17 @@ ______________________________________________________________________ ### **Typo** -# \[h1\] The largest heading +# [h1] The largest heading -## \[h2\] heading +## [h2] heading -### \[h3\] heading +### [h3] heading -#### \[h4\] heading +#### [h4] heading -##### \[h5\] heading +##### [h5] heading -###### \[h6\] The smallest heading +###### [h6] The smallest heading ______________________________________________________________________ diff --git a/tox.ini b/tox.ini index 9618610..e518087 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,7 @@ skip_missing_interpreters = False [testenv:py{312}-beartype] extras = test +deps = -e git+https://github.com/executablebooks/mdformat.git\#egg=mdformat commands = pytest {posargs} --ff --nf -vv --exitfirst --beartype-packages='mdformat_mkdocs' [testenv:py{39}-snapshot-update]