Add copy buttons to code blocks
The DOM element containing code blocks
Configure the underlying engine with the provided options.
Get the current configuration
Get the list of headings from the last parsed document Useful for building table of contents
Get list of supported Prism languages
Highlight code blocks with Prism Call this after the HTML has been inserted into the DOM
The DOM element containing code blocks
Initialize collapsible heading functionality This method is a no-op - the component handles event binding
Check if a language is supported by Prism
Parse markdown to HTML.
The markdown string to parse
Optionalconfig: Partial<MarkdownConfig>Optional config overrides for this parse operation
The rendered HTML string
Parse markdown asynchronously (useful for large documents)
Optionalconfig: Partial<MarkdownConfig>Render Mermaid diagrams in a container element Call this after the HTML has been inserted into the DOM
The DOM element containing mermaid code blocks
Reset configuration to defaults
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-coreMarkdownEngine. 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.