1. 介绍
Asciidoctor是一个快速、开源、基于Ruby的文本处理器,用于将AsciiDoc®解析为文档模型并将其转换为输出格式,例如HTML5、DocBook5、手册页、PDF、EPUB3和其他格式。
4. 快速入门
4.3. 图片
区块图片,语法 => image::图片地址[图片描述,长度,高度,对齐=左对齐/居中/右对齐](在HTML页面上面查看有问题)
image::image/tools/img.png[目录,100,100,align=left] image::image/tools/img.png[目录,100,100,align=center] image::image/tools/img.png[目录,100,100,align=right]



行内图片,语法 => image:图片地址[图片描述,长度,位置,标题(鼠标移至图片上方看到的描述)]
image:image/tools/img.png[目录,100,role=left,title="role=left"] image:image/tools/img.png[目录,100,role=right,title="role=right"] image:image/tools/img.png[目录,100,role=thumb,title="role=thumb"] image:image/tools/img.png[目录,100,role=related,title="role=related"]
图片浮动,语法 => [.左浮动/右浮动] => image:[图片描述,长度]
[.float-group] - [.left] image:image/tools/img.png[目录,100] - [.right] image::image/tools/img.png[目录,100]

4.7. 代码块
默认不换行,语法 => [source,语言] => ---- => 代码块 => ----
[source,java] ---- public static void test() { String str = "1234567890qwertyuiopasdfghjklzxcvbnm"; } ----
public static void test() {
String str = "1234567890qwertyuiopasdfghjklzxcvbnm";
}
自动换行,语法 => [source%nowrap,语言] => ---- => 代码块 => ----
[source%nowrap,java] ---- public static void test() { String str = "1234567890qwertyuiopasdfghjklzxcvbnm"; } ----
public static void test() {
String str = "1234567890qwertyuiopasdfghjklzxcvbnm";
}