Discourse Graphviz

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

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

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

CHANGELOG

TODO

Last edited by @tobiaseigen 2025-07-16T21:36:06Z

Last checked by @tobiaseigen 2025-07-16T21:13:24Z

Check documentPerform check on document:
47 个赞

:partying_face: 此插件现已作为 Bundling more popular plugins with Discourse core 的一部分,与 Discourse 核心捆绑在一起。如果您是自托管用户并使用了此插件,则需要在下次升级前将其从 app.yml 中删除。

4 个赞

此插件在 discourse 的 最新版本 中存在错误。

我必须禁用它才能 重建应用 (discourse)。

它最近被添加到 Discourse 核心中

1 个赞