Skip to content

Latest commit

 

History

History

logseq-reddit-hot-news

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Reddit Hot News Sample

This is a sample that show you how to manipulate blocks :)

Demo

demo

API

npm version

  • 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 )

Running the Sample

  • npm install && npm run build in terminal to install dependencies.
  • Load unpacked plugin in Logseq Desktop client.