magicbookproject / magicbook

The magic book project returns!
MIT License
1.07k stars 59 forks source link

Two html/body #20

Closed aratinau closed 6 years ago

aratinau commented 6 years ago

Hello, I saw a second <html><head></head><body> on the example build, in html example.

 <div class="container">
    <html><head></head><body><section data-type="chapter" id="html-chapter-8vy0FZP">
    <h1>HTML Chapter</h1>
    <p id="second-chapter-id">This is a chapter written in HTML</p>
    </section></body></html>
</div>

I would like to remove this but I don't know where to start to looking for? Maybe I'm not the only one to have this? Thanks for your help!

runemadsen commented 6 years ago

Thanks @aratinau. I think this was created by an update in the html parser. I'll take a look this week and push a fix.

runemadsen commented 6 years ago

I just pushed version 0.1.17 to fix this. It was caused by a breaking change in the HTML parser (cheerio) that we use. Everything should be working now.

aratinau commented 6 years ago

Everything works now, thank you!