Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to span a heading over multiple lines in a .adoc file?

Tags:

asciidoc

Asciidoc ignores line breaks in paragraphs:

These lines
are actually
in the same paragraph

=>

These lines are actually in the same paragraph

However, it does not do it for headings:

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

=>

long heading

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

But I want this:

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

So how do I place a heading on multiple lines in the file?

like image 602
Mikhail Avatar asked Oct 26 '25 21:10

Mikhail


1 Answers

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

like image 163
eskwayrd Avatar answered Oct 29 '25 19:10

eskwayrd