mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
12 lines
307 B
TypeScript
12 lines
307 B
TypeScript
import type { TransformerMiddleware } from '@blocksuite/store';
|
|
|
|
export const CODE_BLOCK_WRAP_KEY = 'codeBlockWrap';
|
|
|
|
export const codeBlockWrapMiddleware = (
|
|
wrap: boolean
|
|
): TransformerMiddleware => {
|
|
return ({ adapterConfigs }) => {
|
|
adapterConfigs.set(CODE_BLOCK_WRAP_KEY, String(wrap));
|
|
};
|
|
};
|