Skip to content

Support specialized role #188

Closed
Closed
@SG-phimeca

Description

@SG-phimeca

The specialized role feature of ReST allows to input inline raw code.
Supporting this feature would allow among other for punctual use of latex formating commands that have no equivalent in markdown, nor ReST.

It relies on the raw directive which is functionning well with MyST (as any other “normal” directive).
However, adding (as suggested in the documentation linked above) the following somewhere (say in rst_prolog):

.. role:: raw-latex(raw)
   :format: latex

does not produce the expected result. The code latex (or html or whatever) raw code is not interpreted. Instead something like :raw-latex:‘RAW_CODE_TO_BE_INTERPRETED‘ is typeset in way as to indicate a problem (it depends on the output processor).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions