-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Demo page and code:
import NotionPageToHtml from "notion-page-to-html";
import fs from "fs";
async function getPage() {
const { html } = await NotionPageToHtml.convert(
"https://jmlecoach.notion.site/Travis-Scott-x-Jordan-1-Low-OG-Olive-2ed7e492a0ed4588970efdf9a69ce954"
);
fs.writeFile("./out.html", html, function (err) {
if (err) {
return console.log(err);
}
console.log("The file was saved!");
});
}
getPage();
The output ends up hiding some images and subtitles that are present in the original page.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels