-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
contents of multi line strings get parsed as markdown #357
Comments
hello, also, is there any other option fo multi line content with js? |
Without addressing the original multiline-string issue, you can accomplish this with the built-in codeblock syntax. If you write it like: If you look at the above example, you will end up with a prop named |
thanks i'll try that |
Going to close this since we can track the progress of this parsing bug in #195. Thanks for opening up the issue! |
This comment has been minimized.
This comment has been minimized.
@Stvad https://github.com/mdx-js/mdx/discussions is a good place to ask questions |
osx 10.13
mdx loader 0.16.6
node 9.10
the following will throw an unexpected token error
this will also happen if the multi line string would be passed as a prop and not as children
internally i can see it tried to wrap the 'more display code' line inside a MDX paragraph although its inside JS string.
if this is by design - how am i suppose to pass multi line strings to components?
let's say a code block component which accepts lines to highlight so i cant use the built in ``` syntax.
The text was updated successfully, but these errors were encountered: