I'm using react-pdf with nodejs (had to apply the fix of #89 to get css styles to properly work).
For us it all works fine as long as the whole string is marked as bold but as soon as we render a portion of the string as bold eg. Hello, <b>world</b> it all becomes non bold? Same with inline spans etc.
Rendering:
<b>x</b>x results in xxx<b>x</b> results in xx
The first fontweight is always applied to the whole paragraph
We've also seen that the same issue goes for inline fontFamily changes. However, tags like <u>, <s>, spans with styles... all work fine.
Reproduction
Try rendering the above strings at the latest versions, not sure if its nodejs specific.
I'm using react-pdf with
nodejs
(had to apply the fix of #89 to get css styles to properly work).For us it all works fine as long as the whole string is marked as bold but as soon as we render a portion of the string as bold eg.
Hello, <b>world</b>
it all becomes non bold? Same with inline spans etc.Rendering:
<b>x</b>x
results in xxx<b>x</b>
results in xxThe first fontweight is always applied to the whole paragraph
We've also seen that the same issue goes for inline fontFamily changes. However, tags like
<u>
,<s>
, spans with styles... all work fine.Reproduction Try rendering the above strings at the latest versions, not sure if its nodejs specific.