datahub icon indicating copy to clipboard operation
datahub copied to clipboard

(feat) Enable Tex in markdown

Open igor-kramer opened this issue 1 month ago • 2 comments

Datahub uses @uiw/react-md-editor for Markdown rendering. Please enable Tex support via katex. https://uiwjs.github.io/react-md-editor/#support-custom-katex-preview

igor-kramer avatar Nov 05 '25 13:11 igor-kramer

A summary of the changes CodeRabbit can apply:

  • Enable KaTeX math rendering across DataHub markdown by adding the "katex" dependency to datahub-web-react/package.json, updating legacy MarkdownViewer.tsx to use KaTeX rehype plugins, adding Remirror KaTeX extension files (KaTeXExtension.tsx, KaTeXComponent.tsx, README) under alchemy-components, injecting the KaTeX extension into Editor.tsx (both alchemy and entity-specific editor paths), and updating markdownToHtml.tsx converters to handle inline $...$ and block math/latex math—so markdown now supports rendered math (requires npm/yarn install and server restart).

  • Add KaTeX math rendering support by adding the katex dependency to package.json; adding a Remirror KaTeX node extension (KaTeXExtension.tsx) and node view component (KaTeXComponent.tsx) plus README; injecting the KaTeXExtension into Editor.tsx files in two editor locations; and enabling KaTeX rendering in markdown/html paths by updating markdownToHtml.tsx and MarkdownViewer.tsx (rehype plugin) to render inline ($...$) and block (math/latex) math, and updating markdownToHtml return handling.

  • [ ] ✅ Create PR with these edits
  • [ ] 📋 Get copyable edits

coderabbitai[bot] avatar Nov 05 '25 13:11 coderabbitai[bot]

HI, I would like to work on this issue

btkcodedev avatar Dec 01 '25 18:12 btkcodedev