Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevingimbel/eleventy-plugin-mermaid

Integrate Mermaid with eleventy (11ty)
https://github.com/kevingimbel/eleventy-plugin-mermaid

11ty-plugin diagram mermaidjs ssg

Last synced: 13 days ago
JSON representation

Integrate Mermaid with eleventy (11ty)

Awesome Lists containing this project

README

        

# eleventy-plugin-mermaid
> Integrate [Mermaid](https://mermaid-js.github.io/mermaid/#/) with [eleventy](https://11ty.dev/)

- [Usage](#usage)
- [Config](#config)
- [Config Options](#config-options)
- [Config Examples](#config-examples)
- [Inline configuration](#inline-configuration)
- [Thanks](#thanks)
- [Future ideas](#future-ideas)
- [Changelog](#changelog)
- [2.2.1](#221)
- [2.1.1](#211)
- [2.1.0](#210)
- [2.0.0](#200)

## Usage

Install via npm:

```bash
npm install @kevingimbel/eleventy-plugin-mermaid
```

Include it in your `.eleventy.js` config file:

```js
const pluginMermaid = require("@kevingimbel/eleventy-plugin-mermaid");

module.exports = (eleventyConfig) => {
eleventyConfig.addPlugin(pluginMermaid);
};
```

Add the JavaScript code to your page (before the closing `body` tag!)

```html
{% mermaid_js %}