Attach (recommended) or Link to PDF file here:
https://web.archive.org/web/20210607145115/https://www.hsbc.fr/content/dam/hsbc/fr/docs/pib/Contestation-Transaction-Carte-Bancaire.pdf
(in the test corpus)

What is the expected behavior? (add screenshot)
<img width="175" alt="image" src="https://user-images.githubusercontent.com/942640/121593583-f8e4a480-c9f0-11eb-8901-2b3b63bb34c0.png">

What went wrong? (add screenshot)
<img width="124" alt="image" src="https://user-images.githubusercontent.com/942640/121593765-1a459080-c9f1-11eb-8695-461ef4e65c3d.png">

if (leader) {
          htmlContentAreas[i].children.push(leader[$toHTML](space).html);
          leader = null;
        }
        if (trailer) {
          htmlContentAreas[i].children.push(trailer[$toHTML](space).html);
          trailer = null;
        }
        let html = root[$toHTML](space);
        if (html.success) {
          if (html.html) {
            htmlContentAreas[i].children.push(html.html);
          }
          return mainHtml;
        }
        
        let mustBreak = false;
        if (this[$extra].breakingNode) {
          const node = this[$extra].breakingNode;
          this[$extra].breakingNode = null;
          if (node.targetType === "auto") {
            html = root[$flushHTML]();
            if (html) {
              htmlContentAreas[i].children.push(html);
            }
            continue;
          }
          const startNew = node.startNew === 1;
          if (node.leader) {
            leader = this[$searchNode](node.leader, node[$getParent]());