UNPKG

gridsome-plugin-remark-markdown-snippets

Version:

Gridsome markdown remark transformer plugin to inject external markdown files into another file, allowing use with variables as well.

49 lines (35 loc) 918 B
# gridsome-remark-markdown-snippets > Gridsome markdown remark transformer plugin to inject external markdown files into another file, allowing use with variables as well. Please note that this package is WIP and will be optimized & cleaned-up soon. ## Install **Note**: This plugin depends on [@gridsome/transformer-remark](https://github.com/gridsome/gridsome/tree/master/packages/transformer-remark) plugin. ```shell npm install gridsome-remark-markdown-snippets yarn add gridsome-remark-markdown-snippets ``` ## Configuration `gridsome.config.js` ```js module.exports = { transformers: { remark: { plugins: ['gridsome-remark-revealjs'], } } } ``` ## Usage …?… The resulting generated markdown will be: ```html <h1>Example javascript embed</h1> <pre> <code class="language-jsx"> function someFunc() { console.log('testo') } </code> </pre> ``` ## Options …?…