regex-explain - v1.6.0
    Preparing search index...

    Class ExplanationRenderer

    Renders an explainRegex result in several output formats.

    Index
    • Collects everything an explanation view shows. Every output format renders from this model.

      Returns ExplanationModel

      The model.

    • Renders the explanation as a nested Markdown list, suitable for hovers and documentation.

      Parameters

      Returns string

      The Markdown.

    • Renders the explanation as a Markdown table with a Pattern and an Explanation column. Nested steps are indented with non-breaking spaces.

      Parameters

      Returns string

      The Markdown.

    • Renders the explanation as indented plain text, for terminals and logs.

      Parameters

      Returns string

      The text.