Display page breaks in the on-screen output
I'm working in Marked on material that will ultimately be printed. I'm using a custom CSS file to monitor how my material looks as it would be printed (this gives me an idea of the flow of text, screen captures and code blocks), but one aspect I'm missing is page breaks. At present I just get one long body of text and I'm not sure how it's working out in terms of pages.
I would love to be able to specify a page height in the "Style" settings pane (similar to the preview width). Ideally I would be able to add custom CSS for header/footer, but I'll settle for page break support :-)
Cheers,
Maurice
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 06 Jan, 2013 03:33 PM
This just isn't possible. Marked displays a web page, and there's no way in CSS to determine pagination. You have to do a print preview to get that info, and I can't currently allow custom headers and footers through the webkit print system. I'm afraid I don't see any way to accomplish this.
2 Posted by Thomas Goodwin on 07 Mar, 2014 03:10 PM
What about an alternate preview screen for paginated PDF? Then it would be the same as the export button except without the file.
Right now I am doing something similar to what Maurice is asking. I'm attempting to address "page-break-*" CSS properties not being fully honored by webkit. As it is I can export to paginated PDF, open it in Preview, and then re-export any time I want a refresh. I still have to go click on Preview to force it to refresh, but ... it works at least. So I suppose my suggestion is to cut-out the middle man. Have a sister view to the main preview and then push the export-rendered version to that previewer when the user asks (since this is a really time consuming operation, auto-refresh is probably out of the question).
Support Staff 3 Posted by Brett on 07 Mar, 2014 03:13 PM
That's a thought, and it might be workable. I'll look into it.
-Brett