Skip to content

↔️ Asciidoctor diagram extension, with support for AsciiToSVG, BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag), Ditaa, Erd, GraphViz, Mermaid, Msc, PlantUML, Shaape, SvgBob, Syntrax, UMLet, Vega, Vega-Lite and WaveDrom.

License

Notifications You must be signed in to change notification settings

asciidoctor/asciidoctor-diagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

982345d · May 21, 2022
May 8, 2022
May 19, 2022
May 19, 2022
Feb 15, 2022
May 21, 2022
May 19, 2022
Nov 2, 2017
Aug 22, 2014
May 19, 2022
Aug 10, 2021
Feb 5, 2014
Jan 14, 2021
Nov 12, 2020
Aug 30, 2021

Repository files navigation

Asciidoctor Diagram

Linux Build Status macOS Build Status Windows Build Status Gem Version

Asciidoctor Diagram is a set of Asciidoctor extensions that enable you to add diagrams, which you describe using plain text, to your AsciiDoc document. The extension will run the appropriate diagram processor to generate an image from the input text. The generated image is then inserted into your converted document.

Detailed usage instructions can be found on the Asciidoctor documentation site.

Asciidoctor Diagram was inspired by the AsciiDoc PlantUML filter.

Example

The Asciidoctor Diagram enables you to embed a plain text diagram as a block in your document. The example below shows an embedded Ditaa diagram block.

[ditaa]
----
              +-------------+
              | asciidoctor |-----------+
              |  diagram    |           |
              +-------------+           | image
                    ^                   |
                    | diagram source    |
                    |                   v
 +--------+   +-----+-------+    /---------------\
 |  adoc  |-->+ asciidoctor +    | HTML + image  |
 +--------+   +-------------+    \---------------/
----

After processing by Asciidoctor, the output file will show a rendered version of the diagram instead of the diagram source code.

asciidoctor diagram process

About

↔️ Asciidoctor diagram extension, with support for AsciiToSVG, BlockDiag (BlockDiag, SeqDiag, ActDiag, NwDiag), Ditaa, Erd, GraphViz, Mermaid, Msc, PlantUML, Shaape, SvgBob, Syntrax, UMLet, Vega, Vega-Lite and WaveDrom.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published