add crossnote and mv textfile

This commit is contained in:
2025-10-03 19:17:46 +09:00
parent add7307893
commit e955ec672b
18 changed files with 7404 additions and 19 deletions

28
build.js Normal file
View File

@@ -0,0 +1,28 @@
const { Notebook } = require("crossnote");
const path = require("path");
const fs = require("fs");
async function main() {
const notebook = await Notebook.init(
{
notebookPath: path.resolve(''),
config: {
previewTheme: 'github-light.css',
mathRenderingOption: 'KaTeX',
codeBlockTheme: 'github.css',
printBackground: true,
enableScriptExecution: true,
chromePath: '/usr/bin/google-chrome-stable',
},
}
);
const file = "./src/2024062806.md";
const engine = notebook.getNoteMarkdownEngine(file);
await engine.chromeExport( {runAllCodeChunks: true});
}
main();