leoncvlt / loconotion

📄 Python tool to turn Notion.so pages into lightweight, customizable static websites
838 stars 132 forks source link

Bad html output structure #142

Open kmlbgn opened 11 months ago

kmlbgn commented 11 months ago

It seems my recent loconotion runs are producing pages with bad html structure which I'm struggling to troubleshoot:

image

Is anyone getting the same? Might be caused by yet another change from notion side ?

Maybe also related with #136

kmlbgn commented 11 months ago

Nobody has the same issue ?

kmlbgn commented 11 months ago

I am now 80% confident this is due to recent notion changes that made some of their styling structure dynamic, probably to accommodate a broader range of displays such as mobile phones. The problem is the .css file downloaded and cached by Loconotion using chrome driver is different from the css file I get by inspecting the published page on my browser. The script is ran in a container environment which further increase odds for this theory. Likely this is also due to the fact loconotion runs chromedriver headless by default, but non-headless option crashes.