This is a sample that show you how to manipulate blocks :)
insertBlock: ( srcBlock: BlockIdentity, content: string, opts?: Partial<{ before: boolean; sibling: boolean; properties: {} }> ) => Promise<BlockEntity | null>insertBatchBlock: ( srcBlock: BlockIdentity, batch: IBatchBlock | Array<IBatchBlock>, opts?: Partial<{ before: boolean, sibling: boolean }> ) => Promise<Array<BlockEntity> | null>updateBlock: ( srcBlock: BlockIdentity, content: string, opts?: Partial<{ properties: {} }> ) => Promise<void>removeBlock: ( srcBlock: BlockIdentity )
npm install && npm run buildin terminal to install dependencies.Load unpacked pluginin Logseq Desktop client.
