How to print/export with preview removed?

I print or export my notes quite often; A feature which has now been removed.
Any workarounds without having to manually copypaste everything in some external markdown converter?

I tried the browser print function which could be semi-acceptable but this only seems to print the first page

Thanks

How proficient are you in SpaceLua? I would use something like Pandoc together with this API.