Discourse Graphviz

Discourse
Wed, 19 Sep 2018 12:08:19 +0000
Plugin

| |
| Summary | Discourse Graphviz provides the ability to add graphs to posts using the DOT language.
| Install Guide | This plugin is bundled with Discourse core. There is no need to install the plugin separately.

As this is an official plugin maintained by the Discourse team, Support, Bug, UX, and Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate plugin tag. Click on a link below to get one started.

Support Bug UX Feature

Features

This plugin uses the Viz.js library to render graphs.
To embed a graph use [graphviz] [/graphviz] bbcode. Optionally you can define layout engine attributes: [graphviz engine=neato]. If engine is not defined, it defaults to the dot engine.
See the Graphviz site for documentation and more examples.

Example

[graphviz engine=circo]
graph {
    a -- b;
    b -- c;
    c -- d;
    d -- e;
    e -- g;
    a -- g;
    a -- c;
    a -- d;
    a -- e;
    b -- d;
    b -- e;
    b -- g;
    c -- e;
    c -- g;
    d -- g;
}
[/graphviz]

Screenshot

SVG from the preview will get converted to png when post is cooked:

Note

This plugin is disabled by default, after installing be sure to enable it via site settings.

CHANGELOG

TODO

Last edited by @tobiaseigen Wednesday, July 16, 2025 9:36 PM UTC

Last checked by @tobiaseigen Wednesday, July 16, 2025 9:13 PM UTC
Check document (нажмите для более подробной информации)

4 сообщения - 4 участника

Читать всю тему