Fix </section> errors and generate HTML and TXT files.