Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2024
1 parent 18e16fb commit ca6e88d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions mdit_py_plugins/attrs/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,9 @@ def _attr_inline_rule(state: StateInline, silent: bool) -> bool:
try:
new_pos, attrs = parse(state.src[state.pos :])
if allowed_attributes is not None:
attrs = {
k: v for k, v in attrs.items() if k in allowed_attributes
}
attrs = {k: v for k, v in attrs.items() if k in allowed_attributes}
token.meta["insecure_attrs"] = {
k: v
for k, v in attrs.items()
if k not in allowed_attributes
k: v for k, v in attrs.items() if k not in allowed_attributes
}
except ParseError:
return False
Expand Down

0 comments on commit ca6e88d

Please sign in to comment.