Debug mode for Banzai rendering
When investigating Banzai render/filter bugs such as #42031 (closed) , it's difficult to work out what is happening. Gaining expertise in Banzai generally is also difficult.
Introduce a "debug mode" into banzai rendering. This could be a Flipper feature or an environment variable. When set:
- Detailed information (as described in #42091 (comment 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