```
% 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"
    ]
]
```
