gatsby-remark-pintora

0.3.0 • Public • Published

Welcome to gatsby-remark-pintora 👋

Version License: MIT

This plugin adds diagrams using pintora during server-side rendering. So you don't have to include a runtime dependency of pintora.

Pintora is faster than Mermaid.js in CLI, since you don't have to start a headless browser to generate images.

🏠 Homepage

Install

In your gatsby project:

npm install --save gatsby-remark-pintora @pintora/cli

How to Use

This plugin processes markdown code blocks. If you have any other plugins which do that such as syntax highlighters, make sure you import this before those plugins.

Add the plugin to your gatsby-config.js.

{
  plugins: [
    {
      resolve: 'gatsby-transformer-remark',
      options: {
        plugins: [
          {
            resolve: 'gatsby-remark-pintora',
            options: {
              // language: 'pintora',
              // theme: 'default',
              // backgroundColor: '#ffffff',
            }
          }
        ]
      }
    }
  ]
}

Now you can use pintora in your markdown:

```pintora
activityDiagram
  start
  :Install Plugin;
  :Configure;
  :Make beautiful and structured diagrams;
  end

And it will be replaced with inline svg:

output example

Author

Acknowledge

This plugin is inspired by gatsby-remark-mermaid | Gatsby.


This README was generated with ❤️ by readme-md-generator

Package Sidebar

Install

npm i gatsby-remark-pintora

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

46.5 kB

Total Files

7

Last publish

Collaborators

  • hikerpig