We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fffbb commit 402d349Copy full SHA for 402d349
src/notion-to-md.ts
@@ -16,7 +16,7 @@ import {
16
import * as md from "./utils/md";
17
import { getBlockChildren } from "./utils/notion";
18
19
-type LinkTransformer = (text: string, href: string) => string;
+type LinkTransformer = (text: string, href: string) => Promise<string>;
20
21
/**
22
* Converts a Notion page to Markdown.
@@ -50,7 +50,7 @@ export class NotionToMarkdown {
50
this.linkTransformer = fn;
51
}
52
53
- linkTransformer(text: string, href: string) {
+ async linkTransformer(text: string, href: string) {
54
return md.link(text, href);
55
56
0 commit comments