Is a blank line mandatory between a section title and its content?
Posted by
Sylvain Leroux on
Jan 28, 2021; 9:38am
URL: https://discuss.asciidoctor.org/Is-a-blank-line-mandatory-between-a-section-title-and-its-content-tp8471.html
Sorry to bother you again, but the more I dig into sections, the more I have questions.

So, is a blank line mandatory between a section title and its content?
I noticed this is the case for level 0 sections (otherwise the text is taken as the author name--something which is explained in the docs).
But for levels >0, the empty line seems optional. And all text is taken as content. Is this the desired behavior?
Regards,
- Sylvain
= My section
Some text
More content
== My section
Some text
More content
Produces:
<?xml version="1.0" encoding="UTF-8"?>
<?asciidoc-toc?>
<?asciidoc-numbered?>
<article xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en">
<info>
<title>My section</title>
<date>2021-01-28</date>
<author>
<personname>
<firstname>Some</firstname>
<surname>text</surname>
</personname>
</author>
<authorinitials>St</authorinitials>
</info>
<simpara>More content</simpara>
<section xml:id="_my_section">
<title>My section</title>
<simpara>Some text</simpara>
<simpara>More content</simpara>
</section>
</article>