Code Monkey home page Code Monkey logo

language-mermaid's Introduction

Mermaid language support in Atom

Adds syntax highlighting to Mermaid files in Atom.

Install

Install the package language-mermaid in the Atom package manager UI or in your shell:

apm install language-mermaid

Contribute

The grammar rules are not complete. Contributions are greatly appreciated. If you see something that is incorrect or needs adding please fork this repository and open a pull request or open an issue and report it.

language-mermaid's People

Contributors

fryev avatar lra avatar nanigasi-san avatar ytisf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

language-mermaid's Issues

arrows with label not recognized

I've got the following code block:

graph LR
  C --> D
  A -.dse.-> B
  A --dse--> B
  A -.-> D

And here's how it looks with the syntax highlighting:
image

i.e. there is not syntax highlighting for the lines with a label within the arrow.

(for the records: the diagram is correcly rendered
image
)

So it seems that the arrow labelling is not recognized, even thought they seem to be defined in the grammar.

Any idea what's wrong?

Installation informations :

  • atom 1.41.0 x64
  • language-mermaid 0.6.0

Thanks!

Thanks a lot for providing this package! I use Mermaid for my dissertation project and now it's fun to look at that code!

Best regards
XL

mermaid syntax in code blocks

Hi.

I was wondering if you knew how to enable mermaid syntax also within code blocks in Markdown. It works for other languages (such as XML) but not for mermaid.

Many thanks for making this syntax definition available in the first place.

All best,
Toma

2017-03-04 16 48 50

Syntax highlighting stops at accentuated character

Here's a graph I have, with an accent in it, saved at UFT-8:

graph TD
    subgraph Gouvernance opérationnelle
        Gerant --dirige--> Salariés
    end

Here how it looks: the color stops at the "é" of "opérationnelle"
image

It's even worse if I fix the typo in Gerant, which normally deserve an accent as well, as the whole reste of the line is ignored:
image

Installation informations :

  • atom 1.41.0 x64
  • language-mermaid 0.6.0

Syntax highlighting for named boxes

Still another highlighting issue, using sort of nicknames for boxes:

graph LR
  A[dcs] --> D[dcé]
  D -.-> A

Which looks like :
image

The diagram is correctly rendered :
image

Any idea about what would be wrong?

Versions information:

  • atom 1.42.0 x64 (up-to-date)
  • language-mermaid as per 7c8734e

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.