@@ -173,13 +173,13 @@ const n2m = new NotionToMarkdown({ notionClient: notion });
173173
174174- only takes a single notion block and returns corresponding markdown string
175175- nesting is ignored
176- - independent of @notionhq/client
176+ - depends on @notionhq/client
177177
178178``` js
179179const { NotionToMarkdown } = require (" notion-to-md" );
180180
181- // notion client not required
182- const n2m = new NotionToMarkdown ();
181+ // passing notion client to the option
182+ const n2m = new NotionToMarkdown ({ notionClient : notion } );
183183
184184const result = n2m .blockToMarkdown (block);
185185console .log (result);
@@ -215,7 +215,7 @@ console.log(result);
215215
216216> ### ` blocksToMarkdown(blocks,totalPage) `
217217>
218- > ** Note** : requires <u >** notion-sdk-js** </u > unlike ` blockToMarkdown `
218+ > ** Note** : requires <u >** notion-sdk-js** </u >
219219>
220220> - ` blocks ` : array of notion blocks
221221> - ` totalPage ` : the retrieve block children request number i.e ` page_size Maximum = totalPage * 100 ` .
@@ -226,7 +226,7 @@ console.log(result);
226226>
227227> - Takes single notion block and converts to markdown string
228228> - does not deal with nested notion blocks
229- > - This method doesn't require the ` notion-sdk-js ` .
229+ > - depends on ` notion-sdk-js ` .
230230> - Refer docs to know more about [ notion blocks] ( https://developers.notion.com/reference/block )
231231
232232## Contribution
0 commit comments