⚛️ Drop in markdown rendering and syntax highlighting for React.
by tannerlinsleyJavaScript
Last 12 weeks · 0 commits
2 of 6 standards met
Repository: tannerlinsley/react-smackdown. Description: ⚛️ Drop in markdown rendering and syntax highlighting for React. Stars: 30, Forks: 5. Primary language: JavaScript. Languages: JavaScript (87.5%), CSS (12.5%). Open PRs: 1, open issues: 2. Last activity: 7y ago. Community health: 42%. Top contributors: tannerlinsley.
This has been a breeze for me to use so thank you for that 🙏 Will there be an option [like in react-markdown] to include/exclude certain things? Only asking as I like to exclude images from my home page listing my blog posts
This switches from Prism to Reprism, resulting in smaller builds and the ability to incrementally and programmatically add languages without relying on globals. Reprism also provides much better SSR support.
Uses Prismjs exclusively. Provides an easy means to theming and importing only the languages you need Highlights inline code blocks as well At least 10x faster. Supports SSR (how does prism do this? I have no idea. Somehow they are piggybacking the variable and it works. I'm not complaining haha.) Provides a standalone component if you don't need to parse any markdown. Uses react-static for the site/demo