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

Markdown Component #1

Closed
sapegin opened this issue Sep 1, 2016 · 5 comments
Closed

Markdown Component #1

sapegin opened this issue Sep 1, 2016 · 5 comments

Comments

@sapegin
Copy link
Owner

sapegin commented Sep 1, 2016

Only components that render Markdown as React components, not as HTML string inside dangerouslySetInnerHTML.

markdown-to-react-components

Deprecated

Based on Marked.

Pros:

  • Requires no Webpack hacks.

Cons:

  • Based on Marked.
  • Tries to highlight code with Prism by default, which is not “included”.

markdown-react-js

Based on Markdown It.

Cons:

  • No HTML support.
  • Requires Webpack hacks.
  • No updates since November 2015.

remark-react

Based on Remark.

Cons:

  • Requires too much Webpack hacks.

markdown-to-jsx

Based on Remark.

Pros:

  • HTML and tables support.

react-markdown

Based on CommonMark.

Cons:

  • No tables support.
  • Requires Webpack hacks.

simple-markdown

Pros:

  • No dependencies.
  • Very small (less than 4 KB which is ~10 times smaller than other libraries)

Cons:

  • No HTML support.

remarkable-react

Based on Remarkable.

Cons:

  • No HTML support.

Marksy

Based on Marked.

Pros:

  • Based on Marked (smaller then other libraries).
  • Requires no webpack hacks.

Cons:

  • Based on Marked.
@bebraw
Copy link
Contributor

bebraw commented Sep 2, 2016

For what it's worth, I wrote html-webpack-remark-plugin to make it a little easier. That could be one direction.

@sapegin sapegin closed this as completed Apr 24, 2017
@quantizor
Copy link

@sapegin what hack does md2jsx need? Happy to try and help alleviate any pain there.

@sapegin
Copy link
Owner Author

sapegin commented Apr 24, 2017

@probablyup I think it was about json-loader but since webpack 2 it doesn’t matter so I could remove that ;-)

@quantizor
Copy link

Ahh, might be something deep in remark. Good to know.

@sapegin
Copy link
Owner Author

sapegin commented Apr 24, 2017

@probablyup I remember that one of the component required a .json extension in webpack config but don’t remember which one.

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

3 participants