Handle rendering errors from reStructuredText
What does this MR do and why?
Contributes to #385712 (closed)
Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/1594
Problem
Unlike other renderers 'reStructuredText' can raise an exception if the context does not follow the required structure.
Solution
Use a simpler renderer instead of raising 500 error.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Create file
test.rst
with invalid content
####
PART
##
- Try to open this file
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin