diff --git a/myst_parser/warnings_.py b/myst_parser/warnings_.py index e23b122d..0dfe6358 100644 --- a/myst_parser/warnings_.py +++ b/myst_parser/warnings_.py @@ -27,7 +27,7 @@ class MystWarnings(Enum): """Duplicate Markdown footnote definition.""" MD_FOOTNOTE_MISSING = "footnote" # noqa: PIE796 """Missing Markdown footnote definition.""" - MD_FOOTNOTE_UNUSED = "footnote" # noqa: PIE796 + MD_FOOTNOTE_UNUSED = "footnote_unused" """Unused Markdown footnote definition.""" MD_HEADING_NON_CONSECUTIVE = "header" """Non-consecutive heading levels.""" diff --git a/tests/test_renderers/fixtures/reporter_warnings.md b/tests/test_renderers/fixtures/reporter_warnings.md index 2c1dd5a7..fbbcf254 100644 --- a/tests/test_renderers/fixtures/reporter_warnings.md +++ b/tests/test_renderers/fixtures/reporter_warnings.md @@ -121,7 +121,7 @@ footnote definition with no reference . [^a]: definition . -:1: (WARNING/2) Footnote definition not referenced: 'a' [myst.footnote] +:1: (WARNING/2) Footnote definition not referenced: 'a' [myst.footnote_unused] . duplicate footnote definition