In preview mode, code blocks and plugins play well, but when export to PDF, code blocks somehow lost additional powers.
I’m trying to extend build-in prism.js with its official plugin, I think shouldn’t the other functionality work too If highlighting works?
After lots of test, I found something wired.
Let me explain this with an example.
-
This is what the code block look like at the begining.
-
This is my post processor
-
This is the code block in preview mode
-
And this is the code block has exported to pdf
The ‘Method 1’ disappeared!!!
I’m not sure if it is a bug, anyone get some clues to handle this?