// CJS const { Notebook } = require('crossnote'); // ESM // import { Notebook } from "crossnote" async function main() { const notebook = await Notebook.init({ notebookPath: '/absolute/path/to/your/notebook', config: { previewTheme: 'github-light.css', mathRenderingOption: 'KaTeX', codeBlockTheme: 'github.css', printBackground: true, enableScriptExecution: true, // <= For running code chunks. }, }