mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #3438 from davidlesieur/typogrify-test-ignore-tags
test: Fix `test_typogrify_ignore_tags` due to Typogrify 2.1 changes
This commit is contained in:
commit
fa0af6d221
2 changed files with 3 additions and 4 deletions
|
|
@ -411,13 +411,12 @@ class RstReaderTest(ReaderTest):
|
||||||
|
|
||||||
def test_typogrify_ignore_tags(self):
|
def test_typogrify_ignore_tags(self):
|
||||||
try:
|
try:
|
||||||
# typogrify should be able to ignore user specified tags,
|
# typogrify should be able to ignore user specified tags.
|
||||||
# but tries to be clever with widont extension
|
|
||||||
page = self.read_file(
|
page = self.read_file(
|
||||||
path="article.rst", TYPOGRIFY=True, TYPOGRIFY_IGNORE_TAGS=["p"]
|
path="article.rst", TYPOGRIFY=True, TYPOGRIFY_IGNORE_TAGS=["p"]
|
||||||
)
|
)
|
||||||
expected = (
|
expected = (
|
||||||
"<p>THIS is some content. With some stuff to "
|
"<p>THIS is some content. With some stuff to "
|
||||||
""typogrify"...</p>\n<p>Now with added "
|
""typogrify"...</p>\n<p>Now with added "
|
||||||
'support for <abbr title="three letter acronym">'
|
'support for <abbr title="three letter acronym">'
|
||||||
"TLA</abbr>.</p>\n"
|
"TLA</abbr>.</p>\n"
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ dev = [
|
||||||
"jinja2>=3.1.2",
|
"jinja2>=3.1.2",
|
||||||
"lxml>=4.9.3",
|
"lxml>=4.9.3",
|
||||||
"markdown>=3.5.1",
|
"markdown>=3.5.1",
|
||||||
"typogrify>=2.0.7",
|
"typogrify>=2.1.0",
|
||||||
"sphinx>=7.1.2",
|
"sphinx>=7.1.2",
|
||||||
"sphinxext-opengraph>=0.9.0",
|
"sphinxext-opengraph>=0.9.0",
|
||||||
"furo==2023.9.10",
|
"furo==2023.9.10",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue