From f3ab9b36c811d47f8d5e70b656fb60770d338566 Mon Sep 17 00:00:00 2001 From: AleksandrHovhannisyan Date: Sun, 10 Nov 2024 21:33:55 -0600 Subject: [PATCH] doc: update usage --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b88c276..d71c75f 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,9 @@ yarn add -D eleventy-plugin-code-demo Register it as a plugin in your Eleventy config: ```js -const { EleventyPluginCodeDemo } = require('eleventy-plugin-code-demo'); +import { EleventyPluginCodeDemo } from 'eleventy-plugin-code-demo'; +// in your eleventy config eleventyConfig.addPlugin(EleventyPluginCodeDemo, { // Use any shortcode name you want name: 'shortcodeName',