UNPKG

microcms-richedit-processer

Version:

microCMSのリッチエディタから取得した値を加工したり、目次リストを作成します。

14 lines (13 loc) 422 B
import type { CreateTableOfContentsOptions } from './types'; declare function createTableOfContents(content: string, options?: CreateTableOfContentsOptions): { id: string; text: string; name: string; }[]; declare function createTableOfContents(content: string, options: CreateTableOfContentsOptions & { dataForName: false; }): { id: string; text: string; }[]; export default createTableOfContents;