Sha256: c160be64e82142ad0df169f0b61fa46cb7a22d35f67087f1a0e877ff0a5d8644

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

# Example

Given this markdown document (note the DITAA block) saved as `example.markdown`:

```markdown
The following graph shows two boxes, connected:

```ditaa
+-----+   +-----+
|  A  |-->|  B  |
+-----+   +-----+
 ```

As you can see, ditaa renders that quite pretty. It's turned into an embedded SVG.
```

The following command turns the DITAA block into SVG, embedded in the HTML:

```command
$ pandoc --lua-filter ditaa-inline.lua --out example.html example.markdown
```

The result looks like this:

![](example.png)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
revealing-1.8.0 tools/pandoc-ditaa-inline/examples/README.markdown
revealing-1.7.1 tools/pandoc-ditaa-inline/examples/README.markdown
revealing-1.7.0 tools/pandoc-ditaa-inline/examples/README.markdown
revealing-1.6.0 tools/pandoc-ditaa-inline/examples/README.markdown
revealing-1.5.0 tools/pandoc-ditaa-inline/examples/README.markdown
revealing-1.4.0 tools/pandoc-ditaa-inline/examples/README.markdown