datahub icon indicating copy to clipboard operation
datahub copied to clipboard

feat(shared/markdown): Support KaTeX Markdown

Open btkcodedev opened this issue 3 weeks ago • 1 comments

Add KaTeX Support Across Markdown Components

Closes #15209

  1. Added Dependencies (package.json)

katex@^0.16.9 – Core KaTeX library for math rendering rehype-katex@^6.0.3 – Rehype plugin for KaTeX integration remark-math@^5.1.1 – Remark plugin for parsing math syntax @uiw/react-markdown-preview@^4.1.16 – Expanded markdown preview support

  1. Created Shared KaTeX Configuration

Added /src/app/shared/markdown/katexConfig.ts containing reusable KaTeX configuration. Centralizes remark-math + rehype-katex plugin setup

  1. Updated Markdown Components

Enhanced markdown rendering with KaTeX support: StyledMDEditor (entity): Added KaTeX plugins + CSS imports StyledMDEditor (entityV2): Added KaTeX support + CSS imports MarkdownViewer: Added KaTeX plugin support for preview rendering

  1. Installed Dependencies

Executed: npm install --legacy-peer-deps to install all required packages successfully.

btkcodedev avatar Dec 01 '25 18:12 btkcodedev

@btkcodedev , please fix the linting

deepgarg760 avatar Dec 09 '25 12:12 deepgarg760