A mos plugin for embedding snippets from files
npm install --save mos-plugin-snippet
In this markdown file there is this template code:
<!--@snippet('./test/fixtures/file-1.js#foo', { showSource: true })-->
<!--/@-->
And it is rendered into this snippet:
console.log('foo')
console.log('bar')
Excerpt from ./test/fixtures/file-1.js
snippet(snippetPath: string)
snippet(snippetPath: string, { showSource: bool })