mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
25 lines
723 B
TypeScript
25 lines
723 B
TypeScript
import type { insertLatexBlockCommand } from './commands.js';
|
|
|
|
export function effects() {
|
|
// TODO(@L-Sun): move other effects to this file
|
|
}
|
|
|
|
declare global {
|
|
namespace BlockSuite {
|
|
interface CommandContext {
|
|
insertedLatexBlockId?: Promise<string>;
|
|
}
|
|
|
|
interface Commands {
|
|
/**
|
|
* insert a LaTeX block after or before the current block selection
|
|
* @param latex the LaTeX content. A input dialog will be shown if not provided
|
|
* @param place where to insert the LaTeX block
|
|
* @param removeEmptyLine remove the current block if it is empty
|
|
* @returns the id of the inserted LaTeX block
|
|
*/
|
|
insertLatexBlock: typeof insertLatexBlockCommand;
|
|
}
|
|
}
|
|
}
|