Skip to content

Commit d195e41

Browse files
committed
style: Import Markup
1 parent 559c723 commit d195e41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mkdocs_autorefs/references.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
from urllib.parse import urlsplit
1515
from xml.etree.ElementTree import Element
1616

17-
import markupsafe
1817
from markdown.core import Markdown
1918
from markdown.extensions import Extension
2019
from markdown.extensions.toc import slugify
2120
from markdown.inlinepatterns import REFERENCE_RE, ReferenceInlineProcessor
2221
from markdown.treeprocessors import Treeprocessor
2322
from markdown.util import HTML_PLACEHOLDER_RE, INLINE_PLACEHOLDER_RE
23+
from markupsafe import Markup
2424

2525
if TYPE_CHECKING:
2626
from collections.abc import Iterable
@@ -185,7 +185,7 @@ def _eval_id(self, data: str, index: int, text: str) -> tuple[str | None, str |
185185
if match := HTML_PLACEHOLDER_RE.fullmatch(identifier):
186186
stash_index = int(match.group(1))
187187
html = self.md.htmlStash.rawHtmlBlocks[stash_index]
188-
identifier = markupsafe.Markup(html).striptags()
188+
identifier = Markup(html).striptags()
189189
self.md.htmlStash.rawHtmlBlocks[stash_index] = escape(identifier)
190190

191191
end = m.end(0)

0 commit comments

Comments
 (0)