Skip to content

:ref: role does not generate a link #122

@zhouyaoji

Description

@zhouyaoji

The :ref: role in conjunction with reST labels allows you to link to arbitrary locations in the document. The rest2html script used by GitHub just ignores the :ref: role.

In the example below, the sentence starting with :ref: should be rendered into a link to the label (_ref_link).

:ref:How do you create arbitrary links in reST? <ref_link>

.. _ref_link:
.. topic:: Making Arbitrary LInks in reST

To make arbitrary links in reST, you use the ``:ref:`` role with a label that is prefixed with an underscore....

I wrote documentation in reST for Mojito, a Node.js-based Web framework, but the FAQ does not render nicely because I use the :ref: role to link the questions to the answers.

See the following as a reference: https://github.com/yahoo/mojito/blob/develop/docs/dev_guide/faq/index.rst

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