mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 20:41:50 +08:00
16 lines
447 B
TypeScript
16 lines
447 B
TypeScript
import {
|
|
BlockViewExtension,
|
|
CommandExtension,
|
|
type ExtensionType,
|
|
} from '@blocksuite/block-std';
|
|
import { literal } from 'lit/static-html.js';
|
|
|
|
import { LatexBlockAdapterExtensions } from './adapters/extension.js';
|
|
import { commands } from './commands.js';
|
|
|
|
export const LatexBlockSpec: ExtensionType[] = [
|
|
BlockViewExtension('affine:latex', literal`affine-latex`),
|
|
CommandExtension(commands),
|
|
LatexBlockAdapterExtensions,
|
|
].flat();
|