首页 > 解决方案 > 如何跨越 .adoc 文件中的多行标题?

问题描述

Asciidoc 忽略段落中的换行符:

These lines
are actually
in the same paragraph

=>

这些行实际上在同一段中

但是,它不适用于标题:

=== long heading
that I would like to 
span over multiple lines
in the .adoc file

=>

长航向

我想跨越 .adoc 文件中的多行

但我想要这个:

我想跨越 .adoc 文件中的多行的长标题

那么如何在文件的多行上放置一个标题呢?

标签: asciidoc

解决方案


Document and section titles in Asciidoc syntax must appear on a single line.

If you need to influence the presentation of the title, you might try inserting <br> tags at the appropriate locations in the title, as described here: https://geekmusthave.com/?p=3160


推荐阅读