Giter VIP home page Giter VIP logo

mermaid-tw5's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mermaid-tw5's Issues

Gantt diagrams not supported?

Mermaid has support for Gantt diagrams, and I have been able to use them successfully in the past on some of my web projects, but the TW5 plugin doesn't seem to support Gantt diagrams. When I try to make a Gantt diagram, nothing is rendered (the same behavior as if there is a syntax error). I double checked that the same code works with the latest Mermaid, so it's not a syntax error. Is this a result of wrapping an older version of Mermaid? Would you be able to fix this simply by updating the version of Mermaid you used?

How to install

Hey!

Glad to see there is a mermaid plugin for tw5 already.
Could you please share instructions about how to install it?

Thanks in advance.
Regards

Arrowheads don't show up on sequence diagrams

Making a test Tiddler with the following contents on https://gt6796c.github.io/:

<$mermaid text="
sequenceDiagram
	participant Alice
    participant Bob
    Alice->Alice: Select either f from Funs[X,Y] or k from K
    loop Attack
    	Bob->Alice: x
    	Alice->Bob: f(x) or F(k,x)
    end
">
</$mermaid>

Is rendered as follows:

screen shot 2017-01-23 at 8 25 02 pm

Note that the arrowheads aren't rendered.

This was tested on both Chrome and Safari, with the same results.

Feature Request: standalone embeddable mermaid diagram

It would be nice to have the ability to generate a single mermaid diagram that is rendered in several tiddlers.

i.e.:
the same as you can create an image-tiddler, which is embedded as an image in other tiddlers via the syntax [img[my_image_tiddler]], it would be handy to generate a single mermaid-tiddler to be embedded in multiple tiddlers by just referencing its name.

Mermaid Graphs cut off text at the end

The Mermaid graph is not rendering last letter of any label.

image

We can try to resolve this by add extra characters to the end. The problem is part of those extra characters are visible.

Update readme.tid to reflect correct version of mermaid used

In the readme.tid file, there is a claim that this plugin is currently based on mermaid release 0.5.1. However, a quick comparison to the main mermaid repo indicates that this plugin is actually using version 6.0.0. Is this in fact the correct version?

Feature request: Compatibility with Markdown syntax

It would be great to be able to insert mermaid diagrams into a markdown styled tiddler (not just a TiddlyWiky complaint tiddler).

I have no idea of how TIddlyWiki plugins are developed, so I was wondering if it was too much effort to do that.
My favorite markdown plugin is tw5-markdown: Comprehensive Markdown plugin for TiddlyWiki which supports extended markdown, but it is not recognizing the mermaid widget.

Essentially I'd like to be able to put the widget tag

<$mermaid text="...
"><$mermaid>

into a markdown tiddler.

Even better, I'd like the text to be wrapped in an extended markdown code snippets like this.

```mermaid
graph LR
A-->B
B-->C
```

Also if you know about an extended markdown plugin for TiddlyWiki which works with your mermaid plugin it would as well welcome.

Finally I accept guidance/suggestions on how to implement it myself.

compatibility with TiddlyWiki 5.1.17

after installing (and refreshing) to an empty flavor of TW, going to $:/plugins/gt6796c/mermaid-tw5 and to to the example tab produces the JS error: "Script error".

The content of the tab renders fine, but the "Results" portion is empty.

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.