-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Code blocks produce null children prop #144
Comments
I don't think that's a valid GFM syntax. Code fences must always be three backticks. Also, this is working for me:
(ignore the escape, needed it so I could put the fence in a fence on github, heh) |
What I meant with single quote fences are these: Is the compile function used internally or does it use another method? |
Yeah, it's used internally. Hmm... I wonder what the issue could be. That all works fine in React 15.x... |
Found the issue, it was something to do with how I handle the compile output. Sorry for the spam 😬 |
I have a Markdown file which contains the following:
By using
require('markdown-to-jsx').compiler('<String above>', {})
I'm getting the following JS output:As you can see, the second children in that array has a
null
children instead of the code above. Even though I haven't installedhighlight.js
, it is being packaged by Webpack.Single quoute fences also have empty outputs. I'm using version
6.4.0
and React16
.The text was updated successfully, but these errors were encountered: