tree: 66c2719ba4500eded9e4853c9ab056f63e6e5a5a [path history] [tgz]
  1. go/
  2. BUILD.bazel
  3. Makefile
  4. probersk.json


This is the code for, a service for rendering Graphviz dot code into SVG.

We look for Graphviz data formatted in a specific way:

          <object type="image/svg+xml" data=""></object>
      graph {
          Hello -- World

The details/summary allows for showing the summary, the generated SVG, while hiding the dot code in a way that makes it easy to inspect it.

We use an ‘object’ tag instead of an ‘img’ tag because that allows any links in the SVG to be functional.

The ‘pre’ tag makes it easy to grab the dot code and also formats the dot code nicely.