Converting a html/xhtml file with css to pdf/epub without loosing any of the styling
You can only use CSS2 styles for pdf/epub
I have a somewhat complicated html file and some css styling for it, for example I need to use display: flex and I have some custom fonts, font sizes and font styles.
All of this styling stuff is done with css classes.
Can I convert this html/xhtml file to a pdf/epub file with the same formatting? I would prefer a python/node package or a command line tool.