Skip to content

feat: Add opt-in FFM Twemoji syntax - #2

Open
Fuyeors wants to merge 2 commits into
fix/parser-performance-securityfrom
feat/twemoji-ffm
Open

feat: Add opt-in FFM Twemoji syntax#2
Fuyeors wants to merge 2 commits into
fix/parser-performance-securityfrom
feat/twemoji-ffm

Conversation

@Fuyeors

@Fuyeors Fuyeors commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

  • Add opt-in twemojiPlugin and twemojiRule exports for FFM inline emoji rendering.
  • Add opt-in latexPlugin, latexInlineRule, and latexBlockRule exports for single-dollar inline and double-dollar block formulas.
  • Mirror the monorepo LaTeX behavior while keeping formula text escaped in every renderer.
  • Render Twemoji and LaTeX consistently in the core HTML, Lit, and Vue renderers.
  • Keep both extensions out of createFuyeorMarkdownParser; consumers must explicitly call .use(twemojiPlugin) and/or .use(latexPlugin).

Validation

  • pnpm --filter @fuyeor/markdown-parser typecheck
  • pnpm --filter @fuyeor/markdown-parser test:unit
  • pnpm --filter @fuyeor/markdown-parser test:ffm
  • pnpm --filter @fuyeor/markdown-parser build
  • Strict standalone typechecks for Lit and Vue renderers
  • pnpm --filter @fuyeor/markdown-parser-playground build
  • git diff --check

This PR is intentionally based on fix/parser-performance-security so additional commits can continue to be added before the base PR is merged.

@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-parser-playground Error Error Aug 19, 2026 1:37am

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

Successfully merging this pull request may close these issues.

1 participant