GithubHelp home page GithubHelp logo

zuisong / docsify-kroki Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 0.0 2.23 MB

A docsify plugin to render graph like plantuml, mermaid, ..etc

Home Page: https://zuisong.github.io/docsify-kroki/

License: MIT License

TypeScript 100.00%
docsify docsify-plugin kroki markdown text-visualization visualization

docsify-kroki's Introduction

Hi I'm ZuiSong ๐Ÿ‘‹

Top Langs mattn's github stats

docsify-kroki's People

Contributors

dependabot[bot] avatar zuisong avatar

Stargazers

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

Watchers

 avatar  avatar

docsify-kroki's Issues

Allow to resize rendered diagrams

Hi, I'm once again here to request an additional feature.
Would it be possible to allow diagrams resizing similarly to what we can do with normal images (docs)?

It would be great if we could have something like this:

![kroki-excalidraw](path/to/diagram.json ':size=60%')

Thanks :)

414 Request URI Too Long

Hi, I was trying to load an excalidraw diagram (tried using both embedded and external files), but I get this error from kroki because the URI is too long:

Error 414: The request URI's length exceeds 4096. You can update this value by setting KROKI_MAX_URI_LENGTH environment variable. Please read: https://docs.kroki.io/kroki/setup/configuration/#_max_uri_length for more information.

According to yuzutech/kroki-go#11, a possible solution would be to use POST requests for longer payloads.

To give you a reference, your excalidraw test is 16KB/695 lines long and it works fine, while mine is 33KB/1483 lines.

Load diagrams from external files

Hello, thank you for your work on this plugin.

I was wondering if it would be possible to load a diagram from an external file instead of embedding it directly in the markdown file.
Some diagram languages are short and human readable and fits well to be written inline. Others, like excalidraw for example, are quite long and they would make the documentation hard to edit.

It would be nice if instead of doing this

Foo
\```excalidraw
[Very long diagram code]
\```
Bar

We could do something like this:

Foo
![excalidraw](path/to/diagram.json)
Bar

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.