Hide markdown preview tab if editing non-markdown formats
What does this MR do and why?
When editing/creating a wiki page in a non-markdown format, it is possible to select the "Preview" tab which renders incorrectly for non-markdown formats.
This MR will remove the "Preview" tab if anything other than markdown is selected for the format.
Screenshots or screen recordings
simplescreenrecorder-2022-02-08_23.26.53
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.
Related to #228883 (closed)