← All projects
Project record1 mention
Originally shared on Hacker News

LLMRender

This library is a tiny (10kb) Markdown to React renderer that supports standard Markdown plus LaTeX math and syntax highlighting, and works well with streaming by doing stable partial rendering. It offers features usually reserved for LLM chatbots while also handling normal everyday Markdown.

Last shared For Frontend developers working on projects that render Markdown, including LLM chatbot interfaces
01 / The problem

What it addresses

Combining a mainstream Markdown renderer with KaTeX (LaTeX) and Prism.js (syntax highlighting) adds ~300kb of gzipped JavaScript to frontend projects.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. LLMRender

    This library is a tiny (10kb) Markdown to React renderer that supports standard Markdown plus LaTeX math and syntax highlighting, and works well with streaming by doing stable partial rendering. It offers features usually reserved for LLM chatbots while also handling normal everyday Markdown.

    Problem: Combining a mainstream Markdown renderer with KaTeX (LaTeX) and Prism.js (syntax highlighting) adds ~300kb of gzipped JavaScript to frontend projects.

    Audience: Frontend developers working on projects that render Markdown, including LLM chatbot interfaces

    Posted by @franciscop · Original source ↗

    Source text · @franciscop · · Source ↗

    I just wrapped up https://llmrender.com/, a tiny (10kb) Markdown to React renderer works with all of the Markdown + LaTeX math you'd normally expect in a normal project.