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 to heading with literal is not rendered as literal #6522

Open
jessetan opened this issue Jun 25, 2019 · 1 comment
Open

Reference to heading with literal is not rendered as literal #6522

jessetan opened this issue Jun 25, 2019 · 1 comment
Labels
domains:std type:enhancement enhance or introduce a new feature

Comments

@jessetan
Copy link
Contributor

Describe the bug
Using a :ref: to a label of a heading that contains a literal is not rendered as a literal (monospaced font)

To Reproduce
Steps to reproduce the behavior:

###
Bla
###

.. _mylabel:

This header has a ``literal``
=============================

This is a reference to the header above :ref:`mylabel`

Produces the following HTML and PDF:

Screen Shot 2019-06-25 at 16 06 51

Screen Shot 2019-06-25 at 16 06 59

Expected behavior
The word "literal" in the reference to be in a monospaced font (as well as in italics in PDF)

Environment info

  • Sphinx version: 1.8.5
@tk0miya tk0miya added type:enhancement enhance or introduce a new feature domains:std and removed type:bug labels Jun 28, 2019
@tk0miya tk0miya added this to the some future version milestone Jun 28, 2019
@tk0miya
Copy link
Member

tk0miya commented Jun 28, 2019

At present, this is intended behavior. So I replaced the tag by "enhancement". +0 to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domains:std type:enhancement enhance or introduce a new feature
Projects
None yet
Development

No branches or pull requests

2 participants