Dan Blaisdell

Results 66 comments of Dan Blaisdell

@rohit8 is your `Html` element wrapped in other react-pdf elements? I wonder if it's inheriting parent styles or being constrained by a parent width.

Using `node-html-parser`, I assembled a some helper functions and an `` tag here: https://github.com/danomatic/react-pdf-html Feedback would be welcome! I'm hoping it can become a standardized part of the `react-pdf` library...

@brxshncy > any updates on this? I've continued working on https://github.com/danomatic/react-pdf-html. Please give it a try and let me know what you think!

@brxshncy I have not bundled and published as an npm package in the event that the author of `react-pdf` was interested in including it. To use it at this time,...

@diegomura are you interested in including https://github.com/danomatic/react-pdf-html as part of `react-pdf` so that it can be maintained together or would you prefer that the `Html` component be maintained separately?

@thismax and @brxshncy I just published it to NPM: https://www.npmjs.com/package/react-pdf-html

@geralddevelop this is nice! I'm thinking of switching `react-pdf-html` to use `react-html-parser` for its parsing. I like it's `transform` callback option.

This seems at least partly to be an issue internal to the react-pdf library but I'm not sure what. react-pdf-html parses the text and passes down react-pdf elements. That should...

Check out some of these tests: https://github.com/danomatic/react-pdf-html/blob/main/src/render.test.tsx#L150 And if you want to JSON.stringify() the result, you can run the result through a helper like this: https://github.com/danomatic/react-pdf-html/blob/main/src/render.test.tsx#L10 I'd like to create...