Skip to content

Commit

Permalink
change warning footnote -> footnote_unused
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed May 25, 2024
1 parent 68b061b commit ad36c3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion myst_parser/warnings_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_renderers/fixtures/reporter_warnings.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ footnote definition with no reference
.
[^a]: definition
.
<string>:1: (WARNING/2) Footnote definition not referenced: 'a' [myst.footnote]
<string>:1: (WARNING/2) Footnote definition not referenced: 'a' [myst.footnote_unused]
.

duplicate footnote definition
Expand Down

0 comments on commit ad36c3d

Please sign in to comment.