First, thanks for the awesome repo! We've cherry-picked on it quite extensively @TimmaLabs.
Over the New Year we came upon an issue (which other users might now be running into as well) where our PDFs would suddenly start breaking after a deploy. Then we ran into this in the logs:
2019-01-01T14:31:05.502Z - info: [render-core.js] PAGE LOG:
_type=warning, _text=Using unescaped '#' characters in a data URI body is deprecated
and will be removed in M71, around December 2018. Please use '%23' instead.
See https://www.chromestatus.com/features/5656049583390720 for more details., _args=[]
A simple fix was to escape all # characters before appending the HTML to the data URI (in render-core.js:90):
First, thanks for the awesome repo! We've cherry-picked on it quite extensively @TimmaLabs.
Over the New Year we came upon an issue (which other users might now be running into as well) where our PDFs would suddenly start breaking after a deploy. Then we ran into this in the logs:
A simple fix was to escape all
#
characters before appending the HTML to the data URI (in render-core.js:90):Didn't want to PR this change yet as I'm not sure whether this is a common issue or not.