diff --git a/packages/pliny/src/ui/TOCInline.tsx b/packages/pliny/src/ui/TOCInline.tsx index ff6a0c2..ce80ec7 100644 --- a/packages/pliny/src/ui/TOCInline.tsx +++ b/packages/pliny/src/ui/TOCInline.tsx @@ -8,6 +8,7 @@ export interface TOCInlineProps { exclude?: string | string[] collapse?: boolean ulClassName?: string + liClassName?: string } export interface NestedTocItem extends TocItem { @@ -57,6 +58,7 @@ const createNestedList = (items: TocItem[]): NestedTocItem[] => { * exclude = '', * collapse = false, * ulClassName = '', + * liClassName = '', * } * */ @@ -68,6 +70,7 @@ const TOCInline = ({ exclude = '', collapse = false, ulClassName = '', + liClassName = '', }: TOCInlineProps) => { const re = Array.isArray(exclude) ? new RegExp('^(' + exclude.join('|') + ')$', 'i') @@ -86,7 +89,7 @@ const TOCInline = ({ return (