Skip to content

Commit 402d349

Browse files
committed
fix: make linkTransformer a promise
1 parent 36fffbb commit 402d349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/notion-to-md.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
import * as md from "./utils/md";
1717
import { getBlockChildren } from "./utils/notion";
1818

19-
type LinkTransformer = (text: string, href: string) => string;
19+
type LinkTransformer = (text: string, href: string) => Promise<string>;
2020

2121
/**
2222
* Converts a Notion page to Markdown.
@@ -50,7 +50,7 @@ export class NotionToMarkdown {
5050
this.linkTransformer = fn;
5151
}
5252

53-
linkTransformer(text: string, href: string) {
53+
async linkTransformer(text: string, href: string) {
5454
return md.link(text, href);
5555
}
5656

0 commit comments

Comments
 (0)