We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 884820d commit db2da89Copy full SHA for db2da89
1 file changed
tests/test_fixtures.py
@@ -1,6 +1,7 @@
1
"""All fixture-based tests for mdformat-footnote."""
2
3
from pathlib import Path
4
+import re
5
6
from fixture_helpers import load_fixtures
7
import mdformat
@@ -10,6 +11,8 @@
10
11
def _get_options(filename: str, title: str) -> dict:
12
"""Determine mdformat options based on fixture file and title."""
13
if filename == "word_wrap.md":
14
+ if match := re.search(r"wrap at (\d+)", title):
15
+ return {"wrap": int(match.group(1))}
16
return {"wrap": 40}
17
if "keep orphans" in title.lower():
18
return {"keep_orphans": True}
0 commit comments