Open kg4zow opened 1 year ago
ReText does use the stylesheet for preview and export to PDF.
If it doesn't work, try enabling the WebEngine renderer (requires python3-pyqt6.qtwebengine
Debian package). The standard renderer only supports a subset of CSS, while Qt WebEngine supports everything as a normal browser supports.
Using ReText 8.0.0 under Debian 12.1 (installed from a Debian repo).
I use a custom stylesheet, maybe 25 lines long, which adds horizontal lines above H1, H2, and H3 elements, to serve as a visual separation between sections when somebody reads a rendered file. I've noticed that ReText apparently only uses the custom stylesheet for "Export to HTML", however I'm used to also seeing them when I'm working on a file (using "MacDown" for macOS), and I need the custom stylesheet to be used when exporting to PDF.
The only related setting I could find in the GUI is the button to select the stylesheet file - I don't see anything like "use stylesheet for live preview".
Am I missing something here?
If not, how hard would it be to use the custom stylesheet for Live Preview and "Export to PDF"?