From c38d70c1752234bfc041c7fd5d762eec83cfbb9b Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Thu, 2 Nov 2023 23:55:13 +0200 Subject: First commit --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..5d17030 --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +## Reddit Hot News Sample + +This is a sample that show you how to manipulate blocks :) + +### Demo + +![demo](./demo.gif) + +### API + +[![npm version](https://badge.fury.io/js/%40logseq%2Flibs.svg)](https://badge.fury.io/js/%40logseq%2Flibs) + +##### [Logseq.Editor](https://logseq.github.io/plugins/interfaces/ieditorproxy.html) + +- `insertBlock: ( + srcBlock: BlockIdentity, content: string, opts?: Partial<{ before: boolean; sibling: boolean; properties: {} }> + ) => Promise` +- `insertBatchBlock: ( + srcBlock: BlockIdentity, batch: IBatchBlock | Array, opts?: Partial<{ before: boolean, sibling: boolean }> + ) => Promise | null>` +- `updateBlock: ( + srcBlock: BlockIdentity, content: string, opts?: Partial<{ properties: {} }> + ) => Promise` +- `removeBlock: ( + srcBlock: BlockIdentity + )` + +### Running the Sample + +- `npm install && npm run build` in terminal to install dependencies. +- `Load unpacked plugin` in Logseq Desktop client. -- cgit v1.2.3