title: Is it possible to put sections inside container in reStructuredText?
body: <p>I would like to write a 2-column website (html) with reStructuredText and <a href="https://pypi.python.org/pypi/rst2html5/" rel="nofollow noreferrer">rst2html5</a>.</p>
  
  <p>I have tried like this</p>
  
  <pre><code>.. container:: right
  
     Right text
  
  .. container:: left
  
     Left text
  </code></pre>
  
  <p>and it works well (with css "float").</p>
  
  <p>However, <a href="https://pypi.python.org/pypi/rst2html5/" rel="nofollow noreferrer">rst2html5</a> could not compile a .rst with a section within a container directive with a message <em>(SEVERE/4) Unexpected section title or transition.</em>.</p>
  
  <pre><code>.. container:: right
  
     ========
     Section1
     ========
  
     Right text
  
  .. container:: left
  
     Left text
  </code></pre>
  
  <p>I guess/think the rst2html5 behavior is completely valid for the rst specification.</p>
  
  <p>I would like to get .html from .rst with rst2html5 like this.</p>
  
  <pre><code>&lt;div class="right"&gt;
    &lt;h1&gt;Section1&lt;/h1&gt;
    &lt;p&gt;Right text&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class="left"&gt;
    &lt;p&gt;Left text&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Is it allowed to include sections within container or something like that?</strong> (I think it is not allowed, right?)
  or
  <strong>How can I get a similar html output to above from .rst (with rst2html5)?</strong></p>
  
  <p>I read <a href="https://stackoverflow.com/questions/1258284/is-it-possible-to-write-in-a-two-columns-style-in-restructuredtext">this</a> thread, but could not manage to get 2-column html.</p>
  
  <p>Any comments would be appreciated. Thanks in advance.</p>