facy - v0.1.0
    Preparing search index...

    Variable CONFIGConst

    CONFIG: {
        warn: (message: string) => void;
        deriveMainClass: (name: string) => string;
        deriveStateClass: (tagName: string, stateName: string) => string;
        formatClass: (source: string) => string;
        deriveLinkTarget: (
            url: MaybeReactive<undefined | string>,
        ) => MaybeReactive<"" | "_blank">;
        parseHtml: (input: string) => DocumentFragment;
    } = ...

    Type declaration

    • warn: (message: string) => void

      How to handle warnings

    • deriveMainClass: (name: string) => string

      How to generate the main CSS class name of a Tag.

    • deriveStateClass: (tagName: string, stateName: string) => string

      How to generate state class names.

    • formatClass: (source: string) => string
    • deriveLinkTarget: (url: MaybeReactive<undefined | string>) => MaybeReactive<"" | "_blank">
    • parseHtml: (input: string) => DocumentFragment

      How to parse (and sanitize!) HTML. Uses DOMPurify by default. Whether you want to use another parser, or need to customize DOMPurify options, just override this with your own function.