Skip to content

Conversation

@btkcodedev
Copy link
Contributor

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.

@github-actions github-actions bot added product PR or Issue related to the DataHub UI/UX community-contribution PR or Issue raised by member(s) of DataHub Community labels Dec 1, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community needs-review Label for PRs that need review from a maintainer. product PR or Issue related to the DataHub UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(feat) Enable Tex in markdown

2 participants