3.4.3 • Published 4 years ago

atom-mermaid v3.4.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

atom-mermaid package

APM Version APM Downloads

Preview diagrams and flowcharts by mermaid library.

atom-mermaid

Installation

In Atom, open Preferences > Install, and search the package with atom-mermaid. Once it found, click Install button to install the package.

Manual installation

You can install the latest version manually from console:

cd ~/.atom/packages
git clone https://github.com/y-takey/atom-mermaid
cd atom-mermaid
npm install

Then restart Atom editor.

Usage

Preview

right click and select [Mermaid Preview]

or

select menu-bar[Packages -> Mermaid Preview -> Toggle Preview]

or

ctrl + option + o (Mac) ctrl + alt + o (Windows probably..)

About markdown syntax, Please see Flowchart , Sequence Diagram and Gantt Diagram

Export

right click on preview tab and select [Save As PNG]

Requirements

This package is using native module node-gyp . but, there seems to faile to install the module. If you failed to install, please install the module with reference to the following page. https://github.com/nodejs/node-gyp

Todos

  • show snippet. e.g.) when types graph TD; , show A-- foo -->B[bar]\nB-.->C((baz))
  • styling. Bigger diagram, font,, etc

Contributing

I don't have a deep knowledge of node.js and atom-editor. so, help me!

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Credits

Many thanks to the mermaid project!