Files
John MacFarlane b81ead43e0 RST reader: align with spec in syntax for role names.
In particular, we now allow colons in row names.

Closes #8653.
2023-02-24 09:55:25 -08:00

303 B

% pandoc -f rst -t native
.. role:: py:class(emphasis)

:py:class:`foo`
^D
[ Para [ Emph [ Str "foo" ] ] ]
% pandoc -f rst -t native
:py:class:`foo`
^D
[ Para
    [ Code
        ( ""
        , [ "interpreted-text" ]
        , [ ( "role" , "py:class" ) ]
        )
        "foo"
    ]
]