Skip to content

literalref role doesn't work with autogenerated heading targets #90

@medubelko

Description

@medubelko

Situation

Automatically-generated heading targets referenced by the ref role don't render as links with the literalref role.

I suspect this is the role's fault, but we should determine if it's something in Kitbash first.

Steps to reproduce

On any of our apps, try:

.. _test-page:

Test page
=========

.. kitbash-field:: craft_application.models.Project name

The :ref:`test-page-name` key.

The :literalref:`test-page-name` key.

Result:

Test page

name

...

The name key.

The test-page-name key.

Environment

I tested using the current Rockcraft stack and the standalone sphinx-roles extension, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions