mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
16 lines
311 B
TypeScript
16 lines
311 B
TypeScript
import type { BundledLanguageInfo, ThemeInput } from 'shiki';
|
|
|
|
export interface CodeBlockConfig {
|
|
theme?: {
|
|
dark?: ThemeInput;
|
|
light?: ThemeInput;
|
|
};
|
|
langs?: BundledLanguageInfo[];
|
|
|
|
/**
|
|
* Whether to show line numbers in the code block.
|
|
* @default true
|
|
*/
|
|
showLineNumbers?: boolean;
|
|
}
|