init
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
choelzl 2021-07-16 09:21:58 +02:00
parent 4733baeecc
commit b55f9f7b6f
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -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;
}