LineNumbers
Renders line numbers for the CodeBlock
component.
API Reference
Last updated
Renders line numbers for the CodeBlock
component.
Property | Type | |
---|---|---|
highlightRanges? | string | |
css? | CSSObject | |
className? | string | |
style? | CSSProperties |
Renders line numbers for the CodeBlock
component.
LineNumbersProps
Calculate which lines to highlight based on the range meta string added by the rehype plugin.
Parameter | Type | Default Value |
---|---|---|
ranges | ranges: string | undefined | — |
(index: number) => boolean