add crossnote and mv textfile
This commit is contained in:
28
build.js
Normal file
28
build.js
Normal 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();
|
||||
Reference in New Issue
Block a user