I would convert a markdown to html code with this test code on a typescript project:
import markdownToStandAloneHtml from '../node_modules/markdown-to-standalone-html/dist/index'
it('should convert markdown to html standalone', async () => {
const actual = await markdownToStandAloneHtml(fileContent,
{ here the options } )
writeFile('cheatSheetStandalone.html', actual)
// console.log(actual)
const isFileExist = fileExists('cheatSheetStandalone.html')
expect(isFileExist === true);
});
{ basePath: "c:/temp", template: "c:/temp/template-simple.html", plugins: [] }
but my custom template is not found.
Any help please ? Thank's