multi-paragraph replacements in reStructuredText or Sphinx

Is there a way to perform multi-paragraph replacements in reStructuredText / rST / reST (or at least in Sphinx)?

The builtin replace directive only allows single-paragraph replacements.