0.07
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A Jekyll plugin to simplify the creation of mermaid diagrams and flowcharts in your posts and pages.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Jekyll-mermaid

A Jekyll plugin to simplify the creation of mermaid diagrams and flowcharts in your posts and pages.

Installation

  1. Install the gem:
gem install jekyll-mermaid
  1. Add the gem to your Jekyll _config.yml:
gems: [jekyll-mermaid]

Please see the Jekyll documentation for more installation options.

Config

You'll need to update your _config.yml with the location of the mermaid source javascript file you want to use.

mermaid:
  src: 'path/to/mermaid.js'

Usage

Simply include the jekyll-mermaid block helper in any of your templates.

{% mermaid %}
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
{% endmermaid %}

Please see the mermaid documentation for more examples.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2014 Jason Bellamy Licensed under the MIT license.