{ } Raw JSON

bundles / papyri latest / papyri / directives / role_verbatim

function

papyri.directives:role_verbatim

source: /papyri/directives.py:45

Signature

def role_verbatim(value: str) → list[Any]

Summary

Role handler that renders the role body as plain inline code.

Extended Summary

Register it for project-local roles that are formatting-only (no cross-reference semantics), e.g. matplotlib's :mpltype:

[global.roles]
mpltype = 'papyri.directives:role_verbatim'

Aliases

  • papyri.directives.role_verbatim