discourse/plugins/discourse-graphviz
2026-03-20 00:39:52 +01:00
..
assets SECURITY: Sanitize graphviz SVG anchor links to prevent XSS 2026-03-19 15:21:28 +00:00
config I18N: Update translations (#38272) 2026-03-10 09:52:23 +01:00
db/post_migrate SECURITY: Sanitize graphviz SVG anchor links to prevent XSS 2026-03-19 15:21:28 +00:00
public/javascripts
spec DEV: Update rubocop (#38721) 2026-03-20 00:39:52 +01:00
.prettierignore
CHANGELOG.md
LICENSE.md
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb SECURITY: Sanitize graphviz SVG anchor links to prevent XSS 2026-03-19 15:21:28 +00:00
README.md DEV: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
upgrade-viz-js.rb

discourse-graphviz

https://meta.discourse.org/t/graphviz-plugin/97554/

Adds Graphviz capability to discourse.

Topic discussing the plugin itself can be found here: https://meta.discourse.org/t/graphviz-plugin/97554

Usage

See the Graphviz site for documentation and examples.
To use with a discourse post, wrap the chart definition in graphviz tags and define engine (if not defined, it will default to dot) like this:

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