Skip to content

Commit

Permalink
fixup! feat: Support [identifier][] with pymdownx.inlinehilite enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Feb 23, 2024
1 parent 9904ae0 commit 1ecd2a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,12 @@ quality = [
"ruff>=0.0",
]
tests = [
"pygments>=2.16",
"pymdown-extensions>=10.0",
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-randomly>=3.15",
"pytest-xdist>=3.3",
"pymdown-extensions>=10.0",
]
typing = [
"mypy>=1.5",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_reference_implicit_with_code_inlinehilite_plain() -> None:
def test_reference_implicit_with_code_inlinehilite_python() -> None:
"""Check implicit references (identifier in backticks, syntax-highlighted by inlinehilite)."""
run_references_test(
extensions={"pymdownx.inlinehilite": {"style_plain_text": "python"}},
extensions={"pymdownx.inlinehilite": {"style_plain_text": "python"}, "pymdownx.highlight": {}},
url_map={"pathlib.Path": "pathlib.html#Path"},
source="This [`pathlib.Path`][].",
output='<p>This <a class="autorefs autorefs-internal" href="pathlib.html#Path"><code class="highlight"><span class="n">pathlib</a><span class="o">.</span><span class="n">Path</span></code></span>.</p>',
Expand Down

0 comments on commit 1ecd2a3

Please sign in to comment.