From a6bb9e37f3a3735cf01cff38de58500959f6a8ea Mon Sep 17 00:00:00 2001 From: Kyle King Date: Wed, 30 Oct 2024 06:33:30 -0400 Subject: [PATCH] Revert "fix: migrate to latest mdformat" This reverts commit b89db656f02c0e4e438c6ba75626a0662d3f48d5. --- tests/format/fixtures/semantic_indent.md | 24 +++++++++---------- tests/format/fixtures/text.md | 30 ++++++++++++------------ tests/pre-commit-test.md | 12 +++++----- tox.ini | 1 - 4 files changed, 33 insertions(+), 34 deletions(-) diff --git a/tests/format/fixtures/semantic_indent.md b/tests/format/fixtures/semantic_indent.md index c638251..13c5e28 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 23a466c..141e93b 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 144f4b9..1d8eeab 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 e518087..9618610 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,6 @@ 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]