I originally made this for an interactive index where you can query some document parts, and these parts are written in rst -- in essence, it&#x27;s almost the same: rendering an arbitrary document into a string, that you may or may not manipulate later.