From b55f9f7b6f847b4ea67ccc31f94e1953537cf44b Mon Sep 17 00:00:00 2001 From: choelzl Date: Fri, 16 Jul 2021 09:21:58 +0200 Subject: [PATCH] init --- compile_pandoc.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 compile_pandoc.js diff --git a/compile_pandoc.js b/compile_pandoc.js deleted file mode 100644 index 5c3c817..0000000 --- a/compile_pandoc.js +++ /dev/null @@ -1,21 +0,0 @@ -const pandoc = require('node-pandoc'); -const path = require('path'); - -module.exports = (KEY)=>{ - - this.key = KEY; - - this.compile_cv = (src,style)=>{ - return new Promise((resolve,reject)=>{ - style = "default-otm"; - let args = `-s --section-divs --template template/${style}.html -f markdown+raw_html+header_attributes+definition_lists+yaml_metadata_block -t html5`; - /* --variable=date:'$(DATE)' \ */ - pandoc(src, args, (err, res)=>{ - if (err) reject(err); - return resolve(res); - }); - }) - - } - return this; -} \ No newline at end of file