Function summarizeMd

  • Convert markdown to plain text and shorten it up to limit chars.

    Returns

    summary and isShowMore flag which is true if the original text is longer than the summary.

    Parameters

    • md: string
    • opts: SummarizeOpt = {}

    Returns {
        isShowMore: boolean;
        summary: string;
    }

    • isShowMore: boolean
    • summary: string