summaryrefslogtreecommitdiff
path: root/tests/test_domain_std.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-12-23 03:01:05 +0900
committerGitHub <noreply@github.com>2021-12-23 03:01:05 +0900
commit94acb1921c05dff9462fec50f3a80814dad659d3 (patch)
treefa1d0a35c69bb57205e53afd863d50da8e0b3c71 /tests/test_domain_std.py
parent7d59c4060871b206e567c9ca55f4667e5bc44d8a (diff)
parente3ee8b378a37958f48d97d74a5c264f1f02e153e (diff)
downloadsphinx-git-94acb1921c05dff9462fec50f3a80814dad659d3.tar.gz
Merge pull request #9998 from tk0miya/9993_inline_target
Close #9993: std domain: Allow to refer an inline target via ref role
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r--tests/test_domain_std.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py
index 011c82f6a..c464ea008 100644
--- a/tests/test_domain_std.py
+++ b/tests/test_domain_std.py
@@ -452,3 +452,12 @@ def test_labeled_rubric(app):
domain = app.env.get_domain("std")
assert 'label' in domain.labels
assert domain.labels['label'] == ('index', 'label', 'blah blah blah')
+
+
+def test_inline_target(app):
+ text = "blah _`inline target` blah\n"
+ restructuredtext.parse(app, text)
+
+ domain = app.env.get_domain("std")
+ assert 'inline target' in domain.labels
+ assert domain.labels['inline target'] == ('index', 'inline-target', 'inline target')