Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reference pointing at a "rubric" directive containing a quoted part breaks #8651

Closed
ArthurHerbemont opened this issue Jan 4, 2021 · 0 comments

Comments

@ArthurHerbemont
Copy link

Describe the bug
The reference text is broken when trying to display a reference pointing at a "rubric" directive containing a part that is quoted. However, a title with a quoted text is rightfully displayed by a reference

.. _reference:

.. rubric:: This rubric will be a ``broken`` reference


Let's call the :ref:`reference`

Will result in:

image

To Reproduce

Just use a rubric directive with a quoted text in it, as shown below:
https://arthurdherbemont.gitlab.io/sphinx-rubric-issue/
from https://gitlab.com/ArthurdHerbemont/sphinx-rubric-issue

Expected behavior
Text displayed by the reference should be displayed entirely

Your project
https://gitlab.com/ArthurdHerbemont/sphinx-rubric-issue

https://arthurdherbemont.gitlab.io/sphinx-rubric-issue/

Environment info

  • OS: alpine linux
  • Python version: 3.7
  • Sphinx version: v3.4.1
@tk0miya tk0miya added this to the 3.5.0 milestone Jan 11, 2021
tk0miya added a commit that referenced this issue Jan 12, 2021
Fix #8651: cross-reference for a rubric having inline item is broken
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants