feat(shared/markdown): Support KaTeX Markdown
Add KaTeX Support Across Markdown Components
Closes #15209
- 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
- Created Shared KaTeX Configuration
Added /src/app/shared/markdown/katexConfig.ts containing reusable KaTeX configuration.
Centralizes remark-math + rehype-katex plugin setup
- 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
- Installed Dependencies
Executed:
npm install --legacy-peer-deps to install all required packages successfully.
@btkcodedev , please fix the linting