This is deprecated in favor of Remark implementation. Posted here for posterity.
let tokens = Pony.getTokens(str)
console.log(JSON.stringify(tokens))
- VFile contents
- Custom theme
- Proxified URLs with rewrites
let html = Pony.render(global.currentFile.contents, {
theme: global.userSettings.render.slide.theme,
proxyPass: true,
root: resolve(global.currentFile.dirname),
rewriteUrl: 'http://127.0.0.1:' + global.userSettings.render.port + '/asset/?p='
})
console.log(html)