@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Variable MARKDOWN_PARSERConst

    MARKDOWN_PARSER: InjectionToken<MarkdownParser> = ...

    Optional DI token for a custom MarkdownParser.

    When provided, the MarkdownEditingStrategy will use it instead of the built-in lightweight converter. This lets consumers plug in full-featured parsers like marked or markdown-it without adding a dependency to the library itself.

    import { MARKDOWN_PARSER, createMarkedParser } from '@theredhead/lucid-kit';
    import { marked } from 'marked';

    @Component({
    providers: [
    {
    provide: MARKDOWN_PARSER,
    useValue: createMarkedParser(md => marked.parse(md) as string),
    },
    ],
    })
    export class MyEditorHost {}