Skip to main content

📦 remark-plugin-code-element

Docusaurus remark pluging to replace fenced code section with themed MDX markdown. For example, replace cow code to Cow JSX.

```cow
Book!
```
http://localhost:3000
cow says: Boo!

Usage​

Read the Code Element documentation.

Configuration​

Install the plugin

npm install @rise4fun/docusaurus-remark-plugin-code-element

and add to your docusaurus.configuration.js file as other remark plugins.

const config = {
plugins: [
...,
["@rise4fun/docusaurus-remark-code-element", {
langs: [{
lang: 'cow',
element: 'Cow'
}]
}]
]
}