We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have installed prism-react-renderer with:
npm install prism-react-renderer
Then in a component, I do:
import Highlight, { defaultProps } from "prism-react-renderer";
So far so good, no errors.
But when I try to test syntax highlighting from the same component with:
const CodeBlock = ` <p>Test.</p> ` <Highlight language="html" code={CodeBlock}></Highlight>
I still get no errors in the console (success Re-building development bundle), but I get a blank page in the browser.
success Re-building development bundle
Any idea what could be going wrong or how to troubleshoot this? Many thanks in advance.
The text was updated successfully, but these errors were encountered:
Do you have errors in the browser console? Can you post a reproduceable example?
Sorry, something went wrong.
No branches or pull requests
I have installed prism-react-renderer with:
Then in a component, I do:
So far so good, no errors.
But when I try to test syntax highlighting from the same component with:
I still get no errors in the console (
success Re-building development bundle
), but I get a blank page in the browser.Any idea what could be going wrong or how to troubleshoot this? Many thanks in advance.
The text was updated successfully, but these errors were encountered: