
Maksym Chocieszy?ski - 2022-09-05 18:44:34
I think there is an error in readDocument($filename). Header formatting is not cleared in the while loop. After it is set once, i will be set in all next paragraphs too.
I've added $formatting['header'] = 0; on line 452, before preg_match and it fixed it for me.
Also it is language dependent. In polish it is Nagwek1 instead of Heading1 and so on.