Giter Club home page Giter Club logo

mermaid-md's Introduction

Mermaid Markdown

| A Chrome extension that renders mermaid markdowns into graphs

Install

Mermaid Markdown on Chrome Store

Changelog

1.0.0

  • add basic functionality which will render embedded mermaid markdown in Github

mermaid-md's People

Contributors

aztack avatar

Watchers

 avatar James Cloos avatar

mermaid-md's Issues

Graph has very large box sizes

Thank you for writing this plug-in! I've tried three others out there, and none work as well as yours. The one problem I've encountered so far is with a graph - the box size is really large. Here is a super simple mark down that shows the issue:

graph TD
A-->B

And here is what is generated (Chrome 80.0.3987.149 on Windows 10):

image

The HTML code being generated for these rectangles has a large height of 142.5:

<rect rx="0" ry="0" x="-20.0390625" y="-71.25" width="40.078125" height="142.5" class="label-container"></rect>

It does not appear to matter if I choose graph TD or graph LR - both have large rectangles.

My hosting platform is GitHub Wiki's, where I have no control over CSS/stylesheets (they filter out all styles). I've attempted to work around this using the class/style features of Mermaid but so far I've had no luck.

The only other chart type I've tried is classDiagram, and that is rendering correctly sized rectangles.

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.