Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
souvikinator authored Jan 25, 2022
1 parent ef0da61 commit ea0d25c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ const n2m = new NotionToMarkdown({ notionClient: notion });

- only takes a single notion block and returns corresponding markdown string
- nesting is ignored
- independent of @notionhq/client
- depends on @notionhq/client

```js
const { NotionToMarkdown } = require("notion-to-md");

// notion client not required
const n2m = new NotionToMarkdown();
// passing notion client to the option
const n2m = new NotionToMarkdown({ notionClient: notion });

const result = n2m.blockToMarkdown(block);
console.log(result);
Expand Down Expand Up @@ -215,7 +215,7 @@ console.log(result);
> ### `blocksToMarkdown(blocks,totalPage)`
>
> **Note**: requires <u>**notion-sdk-js**</u> unlike `blockToMarkdown`
> **Note**: requires <u>**notion-sdk-js**</u>
>
> - `blocks`: array of notion blocks
> - `totalPage`: the retrieve block children request number i.e `page_size Maximum = totalPage * 100`.
Expand All @@ -226,7 +226,7 @@ console.log(result);
>
> - Takes single notion block and converts to markdown string
> - does not deal with nested notion blocks
> - This method doesn't require the `notion-sdk-js`.
> - depends on `notion-sdk-js`.
> - Refer docs to know more about [notion blocks](https://developers.notion.com/reference/block)
## Contribution
Expand Down

0 comments on commit ea0d25c

Please sign in to comment.