Skip to content

Commit

Permalink
Merge pull request #3438 from davidlesieur/typogrify-test-ignore-tags
Browse files Browse the repository at this point in the history
test:  Fix `test_typogrify_ignore_tags` due to Typogrify 2.1 changes
  • Loading branch information
justinmayer authored Jan 14, 2025
2 parents 74d76ca + b3ef32b commit fa0af6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pelican/tests/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,12 @@ def test_typogrify_summary(self):

def test_typogrify_ignore_tags(self):
try:
# typogrify should be able to ignore user specified tags,
# but tries to be clever with widont extension
# typogrify should be able to ignore user specified tags.
page = self.read_file(
path="article.rst", TYPOGRIFY=True, TYPOGRIFY_IGNORE_TAGS=["p"]
)
expected = (
"<p>THIS is some content. With some stuff to&nbsp;"
"<p>THIS is some content. With some stuff to "
"&quot;typogrify&quot;...</p>\n<p>Now with added "
'support for <abbr title="three letter acronym">'
"TLA</abbr>.</p>\n"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ dev = [
"jinja2>=3.1.2",
"lxml>=4.9.3",
"markdown>=3.5.1",
"typogrify>=2.0.7",
"typogrify>=2.1.0",
"sphinx>=7.1.2",
"sphinxext-opengraph>=0.9.0",
"furo==2023.9.10",
Expand Down

0 comments on commit fa0af6d

Please sign in to comment.