问题 I am building documentation with Sphinx-RTD. I want to have a link somewhere, and be styled as a verbatim or preformatted text. For example, say I have this verbatim: ALTER TABLE Is there a way to link it somewhere, say a :ref: ... or even just a standard hyperlink? 回答1: If I am not mistaken the "Replacement Text" directive can help. As reStructuredText doesn't support nested inline markup, the only way to create a reference with styled text is to use substitutions with the "replace"