gridsome-plugin-remark-markdown-snippets

1.0.8 • Public • Published

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 plugin.

npm install gridsome-remark-markdown-snippets
yarn add gridsome-remark-markdown-snippets

Configuration

gridsome.config.js

module.exports = {
  transformers: {
    remark: {
      plugins: ['gridsome-remark-revealjs'],
    }
  }
}

Usage

…?…

The resulting generated markdown will be:

<h1>Example javascript embed</h1>
<pre>
  <code class="language-jsx">
    function someFunc() {
      console.log('testo')
    }
  </code>
</pre>

Options

…?…

Package Sidebar

Install

npm i gridsome-plugin-remark-markdown-snippets

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

7.22 kB

Total Files

5

Last publish

Collaborators

  • martijndeheer