Skip to content
项目

asciidoctor/asciidoctor-diagram

在 GitHub 查看

关于

:left_right_arrow: Asciidoctor 图表扩展,支持 AsciiToSVG、BlockDiag(BlockDiag、SeqDiag、ActDiag、NwDiag)、Ditaa、Erd、GraphViz、Mermaid、Msc、PlantUML、Shaape、SvgBob、Syntrax、UMLet、Vega、Vega-Lite 和 WaveDrom。

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Asciidoctor Diagram

Linux 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]
----
                         +-------------+
                         |   Diagram   +----------------+
                         |   Renderer  |                |
                         +-------------+                |
                         | Asciidoctor |                |
                         |   Diagram   |                |
                         +-------------+                | Image
                                ^                       |
                                | Diagram source        |
 +---------------+              |                       v
 |    Asciidoc   |       +------+------+        /-------+------\
 | with embedded +------>+ Asciidoctor +------->|   Beautiful  |
 |    diagram {d}|       +-------------+  HTML  |    Output    |
 +---------------+                              \--------------/
----

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

asciidoctor diagram process

探索相关项目

加载中…