generated from ryansonshine/typescript-npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -374,6 +374,36 @@ test("does not interfere with mailto links", async () => { | |
}); | ||
expect(results.trim()).toBe(`[mailme](mailto:[email protected])`); | ||
}); | ||
|
||
test("does not interfere with https links", async () => { | ||
const results = await getMarkdown({ | ||
type: "paragraph", | ||
paragraph: { | ||
rich_text: [ | ||
{ | ||
type: "text", | ||
text: { | ||
content: "google", | ||
link: { url: `https://www.google.com` }, | ||
}, | ||
annotations: { | ||
bold: false, | ||
italic: false, | ||
strikethrough: false, | ||
underline: false, | ||
code: false, | ||
color: "default", | ||
}, | ||
plain_text: "google", | ||
href: `https://www.google.com`, | ||
}, | ||
], | ||
color: "default", | ||
}, | ||
}); | ||
expect(results.trim()).toBe(`[google](https://www.google.com)`); | ||
}); | ||
|
||
test("links to other notion pages that are not in this site give PROBLEM LINK", async () => { | ||
const results = await getMarkdown({ | ||
type: "paragraph", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters