reference role?
"Alan G. Isaac" <[email protected]> Tue, 6 Jul 2021 13:03:25 -0400
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
Would it make sense to add ``reference`` to the standard roles? Motivating example: I would like to produce a ``figure-ref`` role to link to figures with a ``name`` class; I imagine that this would subclass reference but would be styled differently. For example, for an HTML writer, as ``target-counter()`` becomes available, it would make use of the counter. Related aside: the ``rst2latex`` writer needs to move the figure label to *after* the caption, otherwise ``--reference-label=ref`` does not work correctly (i.e., does not produce the figure number). Alan Isaac