Skip to content

Commit

Permalink
doc: update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrHovhannisyan committed Nov 11, 2024
1 parent dfb5d56 commit f3ab9b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f3ab9b3

Please sign in to comment.