Show HN: LLMRender, a 10kb Markdown+LaTeX renderer for React
15 hours ago
- #markdown-renderer
- #latex-math
- #react-component
- LLMRender is a React Markdown renderer for various uses, from READMEs to streaming LLM outputs.
- It features built-in LaTeX math rendering to native MathML, supporting both inline $...$ and display $$...$$ syntax.
- Includes syntax highlighting for 30+ languages with four themes, without requiring additional highlighter libraries.
- Supports GitHub Flavored Markdown, including tables, task lists, strikethrough, and callouts like warnings.
- Designed for streaming; handles incomplete Markdown gracefully without flickering or crashes.
- Security-focused by default: neutralizes dangerous URLs, ignores raw HTML unless opted-in with strict allowlists.
- Styling is flexible via plain <div> output with semantic HTML and CSS variables for themes.
- Lightweight bundle under 12KB gzipped, with no dependencies, built-in math, highlighting, and sanitization.