martinkorelic / joplin-plugin-spoilers

Joplin plugin for creating inline spoilers and spoiler blocks.
29 stars 3 forks source link

Cannot print out spoiler block #4

Closed ghost closed 2 years ago

ghost commented 2 years ago

Win10Pro | Joplin V2.4.12

I've test it with a blank userstyle.css and just put in:

@media print {

  /* Hides the side arrow */
  .summary-title:before {
    content: "";
  }

  #spoiler-block-body {
      /* Shows the body contents */
      display: block;
      animation: none;
  }
}

But when I print it out, it just print out the ]: and :[ with plain text content.

martinkorelic commented 2 years ago

Can't seem to recreate the problem, for me it prints out normally. Does the spoiler block appear normal in the text editor preview?

ghost commented 2 years ago

Ok, I finally found that it is only works when I try to export a PDF but it doesn't work when go to File > Print to create a PDF. Is there any solution for this?