Member Junction
    Preparing search index...

    Service for parsing and rendering markdown content on the web.

    The parsing/configuration work (marked setup, custom extensions, HTML and token output) is owned by the framework-agnostic @memberjunction/markdown-core MarkdownEngine. This Angular service is the web shell around it: it injects a Prism-based highlighter into the engine and keeps the browser-only concerns here — Mermaid rendering, copy buttons, and the DOM-based fixup of HTML that marked miscoded as a code block.

    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>