Skip to content

HTML headings and tree section #1

Description

@matses

Hi,

I suspect a bug in the sections tree generated by Herold, when 2 html headings share the same level :

eg with h2 :

<h1>title1</h1><p>para 1</p>
<h2>title 2.1</h2><p>para 2.1</p>
<h2>title 2.2</h2><p>para 2.2</p>

converted in :

<section>
    <title> title1 </title>
    <para>para 1</para>
    <section>
      <title>title 2.1</title>
      <para>para 2.1</para>
      <section>
        <title>title 2.2</title>
        <para>para 2.2</para>
      </section>
    </section>
  </section>

In this case, i expected section 2.1 and section 2.2 at the same level in the tree sections :

<section>
    <title> title1 </title>
    <para>para 1</para>
    <section>
      <title>title 2.1</title>
      <para>para 2.1</para>
    </section>      
     <section>
        <title>title 2.2</title>
        <para>para 2.2</para>      
    </section>
  </section>

Do you agree?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions