Fix relative links in other markup formats
Originally opened at !1845 (closed) by @ben.boeckel.
The RelativeLinkFilter was not applied to other document formats, e.g., reStructuredText, so links from the Files view or the Project view did not work.
Fixes #3533 (closed).