Member Junction
    Preparing search index...
    Index

    Constructors

    Methods

    • Add copy buttons to code blocks

      Parameters

      • container: HTMLElement

        The DOM element containing code blocks

      Returns void

    • Highlight code blocks with Prism Call this after the HTML has been inserted into the DOM

      Parameters

      • container: HTMLElement

        The DOM element containing code blocks

      Returns void

    • Initialize collapsible heading functionality This method is a no-op - the component handles event binding

      Parameters

      • _container: HTMLElement

      Returns void

    • Check if a language is supported by Prism

      Parameters

      • lang: string

      Returns boolean

    • Parse markdown to HTML.

      Parameters

      • markdown: string

        The markdown string to parse

      • Optionalconfig: Partial<MarkdownConfig>

        Optional config overrides for this parse operation

      Returns string

      The rendered HTML string

    • Render Mermaid diagrams in a container element Call this after the HTML has been inserted into the DOM

      Parameters

      • container: HTMLElement

        The DOM element containing mermaid code blocks

      Returns Promise<boolean>

    • Sanitize rendered HTML for binding to innerHTML while preserving layout HTML, inline styles and inline SVG. See the DOMPurify configuration at the top of this file for what is kept and removed. Where no DOM is available to sanitize with, the markup is escaped and rendered as text rather than trusted.

      Parameters

      • html: string

      Returns string