Debug mode for Banzai rendering
Description
When investigating Banzai render/filter bugs such as https://gitlab.com/gitlab-org/gitlab-ce/issues/42031 , it's difficult to work out what is happening. Gaining expertise in Banzai generally is also difficult.
Proposal
Introduce a "debug mode" into banzai rendering. This could be a Flipper feature or an environment variable. When set:
- Detailed information (as described in https://gitlab.com/gitlab-org/gitlab-ce/issues/42091#note_54916213) in rendered in the preview tab of any Markdown field.
In future, we could extend this to rerendering existing content, too:
- All caching is disabled
- Items that aren't "single_line" are rendered with a block above the actual output, showing the full pipeline that was run against the text, and the inputs and outputs to each stage in the pipeline.
This will allow bugs to be spotted much more quickly and easily, and also ease the process of gaining Banzai expertise, as the full sequence of actions taken for any input will be trivially visible.
Links / references
/cc @DouweM
Edited by Sean McGivern