Constructs a new ExplanationRenderer.
The result of explainRegex.
Collects everything an explanation view shows. Every output format renders from this model.
The model.
Renders the explanation as a nested Markdown list, suitable for hovers and documentation.
Optionaloptions: RenderOptions
Rendering options.
The Markdown.
Renders the explanation as a Markdown table with a Pattern and an Explanation column. Nested steps are indented with non-breaking spaces.
Optionaloptions: RenderOptions
Rendering options.
The Markdown.
Renders the explanation as indented plain text, for terminals and logs.
Optionaloptions: RenderOptions
Rendering options.
The text.
Renders an
explainRegexresult in several output formats.