Go to content

The funny thing about semantic versioning is that even a small update can release in a major version increase. Yesterday I created a new release of @fec/eleventy-plugin-remark and since it bumps the minimum version from Node 8 to Node 10 its version number also increased from 1.0.2 to 2.0.0.

New in 2.0.0 is the ability to pass options to remark plugins. For example,

// .eleventy.js
const eleventyRemark = require('@fec/eleventy-plugin-remark');

module.exports = (eleventyConfig) => {
  eleventyConfig.addPlugin(eleventyRemark, {
    plugins: [
        plugin: 'remark-emoji',
        options: {
          padSpaceAfter: true,
          emoticon: true,
  return {};

You can install @fec/eleventy-plugin-remark with NPM or Yarn:

npm install -D @fec/eleventy-plugin-remark remark remark-html
yarn add --dev @fec/eleventy-plugin-remark remark remark-html

Thanks to Sergio Flores for providing the pull request that added this feature.