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

Marked no longer supports objects with multiple properties to be set as prop values #63

Closed
bryandowning opened this issue Apr 2, 2018 · 3 comments

Comments

@bryandowning
Copy link

...and in general, they do not support JSX syntax.

See this issue for more detail: markedjs/marked#1194

This is obviously a huge bummer, but it might be worth hardcoding the version number of the marked dependency to 0.3.12 to avoid getting a later version that breaks.

@mmmaaatttttt
Copy link

Hey @bryandowning! I'm dealing with this issue as well. Have you checked out MDX? https://github.com/mdx-js/mdx#mdx-syntax I'm thinking I may need to transition away from marksy, but was curious to see if you've found any other solutions.

@bryandowning
Copy link
Author

Hey, unfortunately I have not been able to come up with another solution yet. Thanks for sharing the MDX link! Definitely looks compelling!

Looks like it doesn't have much traction, but seeing Tim and Guillermo from ZEIT listed as authors makes me happy (I'm using next.js for my site).

@bryandowning
Copy link
Author

@mmmaaatttttt Looks like MDX won't work for string content coming from an API, because it only works at build time — not runtime.

See this thread: mdx-js/mdx#126 (comment)

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

No branches or pull requests

2 participants