Remark plugin for embedding code snippets from github permalinks.
yarn add --dev @razroo/razroo-remark-embed-code
import remark from 'remark';
import embeddedCodeSnippets from '@razroo/razroo-remark-embed-code';
import report from 'vfile-reporter';
remark()
.use(embeddedCodeSnippets)
.process(markdown, (err, file) => {
console.log(String(file));
console.error(report(err || file));
});
![](https://github.com/jomaxx/remark-embedded-code-snippets/blob/78d8ec567422a9776beb2d48dd826189aed58267/prettier.config.js#L1)
module.exports = require('@spotify/web-scripts/config/prettier.config.js');