CodeblockCustomizer icon indicating copy to clipboard operation
CodeblockCustomizer copied to clipboard

Export to PDF, the code block is not expanded

Open imingz opened this issue 1 year ago • 3 comments

When I export to PDF, I find that the code block is not expanded by default when it is selected to be collapsed, should the default behavior when exporting be changed to expand?

imingz avatar May 03 '24 06:05 imingz

Yepp, that's correct. But I could add a toggle, which if it is enabled would uncollapse all code blocks when printing, if that's ok?

mugiwara85 avatar May 06 '24 20:05 mugiwara85

I added a toggle in the "Print to PDF" section, where you can switch it. It is not yet released. If you want to try it out, you can take the main.js file, and overwrite yours with it (create a backup before overwriting). I would appreciate a feedback.

mugiwara85 avatar May 14 '24 18:05 mugiwara85

Thank you, I think it's enough to use it now, and I look forward to the official launch of this feature in the future.

imingz avatar May 15 '24 01:05 imingz

Finally released. Officially available in version 1.2.7

mugiwara85 avatar Jun 13 '24 21:06 mugiwara85