External Preview Plugin for Remark
npm install @adapttive/remark-external-previewnpm install @adapttive/remark-external-preview or
yarn add @adapttive/remark-external-preview
``js
const remark = require("remark");
const html = require('remark-html');
const externalPreview = require('@adapttive/remark-external-preview');
remark()
.use(html)
.use(externalPreview)
.process(
"# Hi" +
"\n@external:code:github",
function(err, output) {
console.log(String(output))
console.error(err)
}
);
``