Skip to content

Commit d831de4

Browse files
committed
prettier
1 parent 1fb5171 commit d831de4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/notion2md.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
import { NotionToMarkdown } from 'notion-to-md'
2-
import { Client } from '@notionhq/client'
1+
import { NotionToMarkdown } from "notion-to-md";
2+
import { Client } from "@notionhq/client";
33

4-
export default async function notion2md(pageId: string, token: string): Promise<string> {
4+
export default async function notion2md(
5+
pageId: string,
6+
token: string
7+
): Promise<string> {
58
const notion = new Client({
6-
auth: token
7-
})
9+
auth: token,
10+
});
811

912
const n2m = new NotionToMarkdown({
1013
notionClient: notion,
1114
config: {
1215
parseChildPages: false, // default: parseChildPages
13-
}
16+
},
1417
});
1518

1619
const mdblocks = await n2m.pageToMarkdown(pageId);
1720
const mdString = await n2m.toMarkdownString(mdblocks);
1821
return mdString.parent;
19-
20-
}
22+
}

0 commit comments

Comments
 (0)