Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-markdown only rendering in currently visible viewport #108

Closed
mocon opened this issue Nov 22, 2017 · 1 comment
Closed

React-markdown only rendering in currently visible viewport #108

mocon opened this issue Nov 22, 2017 · 1 comment

Comments

@mocon
Copy link

mocon commented Nov 22, 2017

Hi there. I'm experiencing a strange issue where my <ReactMarkdown /> component is only rendering within the currently visible viewport.

As you can see here, I am console.log'ing the Markdown string value:

screen shot 2017-11-22 at 12 41 46 pm

And if I scroll down, the component is not rendering the remaining Markdown:

screen shot 2017-11-22 at 12 41 58 pm

The component is also updating on viewport resize, showing the correctly rendered Markdown in the viewport, but not showing anything outside of the viewport if I scroll. Can you point me in the right direction here?

Thank you so much, and great work on the library! It's super useful.

@rexxars
Copy link
Collaborator

rexxars commented Nov 23, 2017

95% sure this is a styling issue, as react-markdown just outputs plain DOM nodes without any styling.
If you inspect the last element to be rendered ("Test the docs") you should be able to see more DOM-nodes below it.

Let me know if you still think this is a library issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants