Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
Feat/la te x (#1365)
Joeyfa7e4cbdca68
diff --git a/.gitignore b/.gitignoreindex ffb24ceeb4..394d138caa 100644--- a/.gitignore+++ b/.gitignore@@ -57,3 +57,4 @@ _features/server/serverdata/.kilo+.ideadiff --git a/packages/ui/markdown/Markdown.tsx b/packages/ui/markdown/Markdown.tsxindex c1ef072d8b..c6f2b0c651 100644--- a/packages/ui/markdown/Markdown.tsx+++ b/packages/ui/markdown/Markdown.tsx@@ -1,14 +1,17 @@import * as React from 'react'import ReactMarkdown, { type Components, defaultUrlTransform } from 'react-markdown'+import rehypeKatex from 'rehype-katex'import rehypeRaw from 'rehype-raw'import rehypeSanitize, { defaultSchema } from 'rehype-sanitize'import remarkGfm from 'remark-gfm'+import remarkMath from 'remark-math'import { FileText, Download } from 'lucide-react'import { cn } from '@multica/ui/lib/utils'import { CodeBlock, InlineCode } from './CodeBlock'import { preprocessFileCards } from './file-cards'import { preprocessLinks } from './linkify'import { preprocessMentionShortcodes } from './mentions'+import './markdown.css'/*** Render modes for markdown content:@@ -76,6 +79,7 @@ const sanitizeSchema = {code: [...(defaultSchema.attributes?.code ?? []),['className', /^language-/],+ ['className', /^math-/],['className', /^hljs/],],img: [@@ -400,8 +404,8 @@ export function Markdown({return (<div className={cn('markdown-content break-words', className)}><ReactMarkdown- remarkPlugins={[[remarkGfm, { singleTilde: false }]]}- rehypePlugins={[rehypeRaw, [rehypeSanitize, sanitizeSchema]]}+ remarkPlugins={[remarkMath, [remarkGfm, { singleTilde: false }]]}+ rehypePlugins={[rehypeRaw, [rehypeSanitize, sanitizeSchema], rehypeKatex]}urlTransform={urlTransform}components={components}>diff --git a/packages/ui/markdown/markdown.css b/packages/ui/markdown/markdown.cssnew file mode 100644index 0000000000..e2a366c905--- /dev/null+++ b/packages/ui/markdown/markdown.css@@ -0,0 +1,11 @@+@import "katex/dist/katex.min.css";++.markdown-content .katex-display {+ margin: 0.75rem 0;+ overflow-x: auto;+ overflow-y: hidden;+}++.markdown-content .katex-display > .katex {+ white-space: nowrap;+}diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex dd5cb229e3..5be43233c2 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -30,14 +30,17 @@"emoji-mart": "^5.6.0","input-otp": "^1.4.2","linkify-it": "^5.0.0",+ "katex": "catalog:","lucide-react": "catalog:","next-themes": "^0.4.6","react-day-picker": "^9.14.0","react-markdown": "^10.1.0","react-resizable-panels": "^4.7.5","recharts": "3.8.0",+ "rehype-katex": "catalog:","rehype-raw": "^7.0.0","remark-gfm": "^4.0.1",+ "remark-math": "catalog:","shiki": "^3.21.0","sonner": "^2.0.7","tailwind-merge": "catalog:",diff --git a/packages/views/editor/content-editor.css b/packages/views/editor/content-editor.cssindex 4ef1d8df2e..bd08a15b36 100644--- a/packages/views/editor/content-editor.css+++ b/packages/views/editor/content-editor.css@@ -1,3 +1,5 @@+@import "katex/dist/katex.min.css";+/** ContentEditor typography — ProseMirror styles using shadcn design tokens.*@@ -123,6 +125,31 @@margin-top: 0.25rem;}+.rich-text-editor .math-node {+ display: inline-flex;+ max-width: 100%;+ vertical-align: middle;+}++.rich-text-editor .math-node.inline {+ align-items: center;+}++.rich-text-editor .math-node.block {+ display: block;+ margin: 0.75rem 0;+ overflow-x: auto;+ overflow-y: hidden;+}++.rich-text-editor .math-node.block .katex-display {+ margin: 0;+}++.rich-text-editor .math-node .katex {+ max-width: 100%;+}+/* Nested lists — bullet style progression and tighter spacing */.rich-text-editor ul ul {list-style-type: circle;@@ -505,4 +532,3 @@white-space: nowrap;}-diff --git a/packages/views/editor/extensions/index.ts b/packages/views/editor/extensions/index.tsindex d750244f1d..e8c1f025d3 100644--- a/packages/views/editor/extensions/index.ts+++ b/packages/views/editor/extensions/index.ts@@ -44,6 +44,7 @@ import { createBlurShortcutExtension } from "./blur-shortcut";import { createFileUploadExtension } from "./file-upload";import { FileCardExtension } from "./file-card";import { ImageView } from "./image-view";+import { BlockMathExtension, InlineMathExtension } from "./math";const lowlight = createLowlight(common);@@ -116,6 +117,8 @@ export function createEditorExtensions(TableRow,TableHeader,TableCell,+ BlockMathExtension,+ InlineMathExtension,Markdown,FileCardExtension,BaseMentionExtension.configure({diff --git a/packages/views/editor/extensions/math.tsx b/packages/views/editor/extensions/math.tsxnew file mode 100644index 0000000000..d8820ef225--- /dev/null+++ b/packages/views/editor/extensions/math.tsx@@ -0,0 +1,199 @@+"use client";++import katex from "katex";+import { Node, mergeAttributes, nodeInputRule } from "@tiptap/core";+import { ReactNodeViewRenderer, NodeViewWrapper } from "@tiptap/react";+import type { NodeViewProps } from "@tiptap/react";++function renderMath(expression: string, displayMode: boolean): string {+ return katex.renderToString(expression, {+ displayMode,+ output: "htmlAndMathml",+ strict: "warn",+ throwOnError: false,+ });+}++function InlineMathView({ node }: NodeViewProps) {+ const expression = String(node.attrs.expression ?? "");+ return (+ <NodeViewWrapper+ as="span"+ className="math-node inline"+ data-type="inline-math"+ data-expression={expression}+ contentEditable={false}+ >+ <span dangerouslySetInnerHTML={{ __html: renderMath(expression, false) }} />+ </NodeViewWrapper>+ );+}++function BlockMathView({ node }: NodeViewProps) {+ const expression = String(node.attrs.expression ?? "");+ return (+ <NodeViewWrapper+ as="div"+ className="math-node block"+ data-type="block-math"+ data-expression={expression}+ contentEditable={false}+ >+ <div dangerouslySetInnerHTML={{ __html: renderMath(expression, true) }} />+ </NodeViewWrapper>+ );+}++export const InlineMathExtension = Node.create({+ name: "inlineMath",+ group: "inline",+ inline: true,+ atom: true,+ selectable: true,++ addAttributes() {+ return {+ expression: {+ default: "",+ rendered: false,+ },+ };+ },++ parseHTML() {+ return [+ {+ tag: 'span[data-type="inline-math"]',+ getAttrs: (el) => ({+ expression: (el as HTMLElement).getAttribute("data-expression") ?? "",+ }),+ },+ ];+ },++ renderHTML({ node, HTMLAttributes }) {+ return [+ "span",+ mergeAttributes(HTMLAttributes, {+ "data-type": "inline-math",+ "data-expression": node.attrs.expression,+ }),+ node.attrs.expression,+ ];+ },++ markdownTokenizer: {+ name: "inlineMath",+ level: "inline" as const,+ start(src: string) {+ return src.indexOf("$");+ },+ tokenize(src: string) {+ if (!src.startsWith("$") || src.startsWith("$$")) return undefined;+ const match = src.match(/^\$((?:\\.|[^$\\\n])+?)\$/);+ if (!match) return undefined;+ return {+ type: "inlineMath",+ raw: match[0],+ attributes: { expression: match[1] },+ };+ },+ },++ parseMarkdown: (token: any, helpers: any) => {+ return helpers.createNode("inlineMath", token.attributes);+ },++ renderMarkdown: (node: any) => {+ const expression = String(node.attrs?.expression ?? "");+ return `$${expression}$`;+ },++ addInputRules() {+ return [+ nodeInputRule({+ find: /\$(?:\\.|[^$\\\n])+\$$/,+ type: this.type,+ getAttributes: (match) => ({+ expression: match[0].slice(1, -1),+ }),+ }),+ ];+ },++ addNodeView() {+ return ReactNodeViewRenderer(InlineMathView);+ },+});++export const BlockMathExtension = Node.create({+ name: "blockMath",+ group: "block",+ atom: true,+ code: true,+ defining: true,+ isolating: true,+ selectable: true,++ addAttributes() {+ return {+ expression: {+ default: "",+ rendered: false,+ },+ };+ },++ parseHTML() {+ return [+ {+ tag: 'div[data-type="block-math"]',+ getAttrs: (el) => ({+ expression: (el as HTMLElement).getAttribute("data-expression") ?? "",+ }),+ },+ ];+ },++ renderHTML({ node, HTMLAttributes }) {+ return [+ "div",+ mergeAttributes(HTMLAttributes, {+ "data-type": "block-math",+ "data-expression": node.attrs.expression,+ }),+ node.attrs.expression,+ ];+ },++ markdownTokenizer: {+ name: "blockMath",+ level: "block" as const,+ start(src: string) {+ return src.search(/^\$\$/m);+ },+ tokenize(src: string) {+ if (!src.startsWith("$$")) return undefined;+ const match = src.match(/^\$\$[ \t]*\n?([\s\S]+?)\n?\$\$(?:\n|$)/);+ if (!match) return undefined;+ return {+ type: "blockMath",+ raw: match[0],+ attributes: { expression: match[1] ?? "" },+ };+ },+ },++ parseMarkdown: (token: any, helpers: any) => {+ return helpers.createNode("blockMath", token.attributes);+ },++ renderMarkdown: (node: any) => {+ const expression = String(node.attrs?.expression ?? "");+ return `$$\n${expression}\n$$`;+ },++ addNodeView() {+ return ReactNodeViewRenderer(BlockMathView);+ },+});diff --git a/packages/views/editor/readonly-content.test.tsx b/packages/views/editor/readonly-content.test.tsxnew file mode 100644index 0000000000..280a9aac12--- /dev/null+++ b/packages/views/editor/readonly-content.test.tsx@@ -0,0 +1,57 @@+import { describe, expect, it, vi } from "vitest";+import { render } from "@testing-library/react";++vi.mock("@multica/core/paths", () => ({+ useWorkspacePaths: () => ({+ issueDetail: (id: string) => `/test/issues/${id}`,+ }),+ useWorkspaceSlug: () => "test",+}));++vi.mock("../navigation", () => ({+ useNavigation: () => ({ push: vi.fn(), openInNewTab: vi.fn() }),+}));++vi.mock("../issues/components/issue-mention-card", () => ({+ IssueMentionCard: ({ issueId, fallbackLabel }: { issueId: string; fallbackLabel?: string }) => (+ <span data-testid="issue-mention-card">{fallbackLabel ?? issueId}</span>+ ),+}));++vi.mock("./extensions/image-view", () => ({+ ImageLightbox: () => null,+}));++vi.mock("./link-hover-card", () => ({+ useLinkHover: () => ({}),+ LinkHoverCard: () => null,+}));++vi.mock("./utils/link-handler", () => ({+ openLink: vi.fn(),+ isMentionHref: (href?: string) => Boolean(href?.startsWith("mention://")),+}));++import { ReadonlyContent } from "./readonly-content";++describe("ReadonlyContent math rendering", () => {+ it("renders inline and block LaTeX with KaTeX markup", () => {+ const { container } = render(+ <ReadonlyContent+ content={[+ "Inline math: $E = mc^2$",+ "",+ "$$",+ "\\int_0^1 x^2 \\, dx",+ "$$",+ ].join("\n")}+ />,+ );++ const text = container.textContent?.replace(/\s+/g, " ") ?? "";+ expect(container.querySelectorAll(".katex").length).toBeGreaterThanOrEqual(2);+ expect(container.querySelector(".katex-display")).not.toBeNull();+ expect(text).toContain("E = mc^2");+ expect(text).toContain("\\int_0^1 x^2 \\, dx");+ });+});diff --git a/packages/views/editor/readonly-content.tsx b/packages/views/editor/readonly-content.tsxindex 2731d3e735..52674faa6a 100644--- a/packages/views/editor/readonly-content.tsx+++ b/packages/views/editor/readonly-content.tsx@@ -21,7 +21,9 @@ import ReactMarkdown, {defaultUrlTransform,type Components,} from "react-markdown";+import rehypeKatex from "rehype-katex";import remarkGfm from "remark-gfm";+import remarkMath from "remark-math";import rehypeRaw from "rehype-raw";import rehypeSanitize, { defaultSchema } from "rehype-sanitize";import { createLowlight, common } from "lowlight";@@ -66,6 +68,7 @@ const sanitizeSchema = {code: [...(defaultSchema.attributes?.code ?? []),["className", /^language-/],+ ["className", /^math-/],["className", /^hljs/],],img: [@@ -294,8 +297,8 @@ export function ReadonlyContent({ content, className }: ReadonlyContentProps) {return (<div ref={wrapperRef} className={cn("rich-text-editor readonly text-sm", className)}><ReactMarkdown- remarkPlugins={[[remarkGfm, { singleTilde: false }]]}- rehypePlugins={[rehypeRaw, [rehypeSanitize, sanitizeSchema]]}+ remarkPlugins={[remarkMath, [remarkGfm, { singleTilde: false }]]}+ rehypePlugins={[rehypeRaw, [rehypeSanitize, sanitizeSchema], rehypeKatex]}urlTransform={urlTransform}components={components}>diff --git a/packages/views/package.json b/packages/views/package.jsonindex fc0983f494..9c568e079d 100644--- a/packages/views/package.json+++ b/packages/views/package.json@@ -71,12 +71,15 @@"@tiptap/suggestion": "^3.22.1","cmdk": "^1.1.1","hast-util-to-html": "^4.0.1",+ "katex": "catalog:","lowlight": "^3.3.0","react-markdown": "^10.1.0","react-resizable-panels": "^4.7.5","recharts": "3.8.0",+ "rehype-katex": "catalog:","rehype-raw": "^7.0.0","remark-gfm": "^4.0.1",+ "remark-math": "catalog:","sonner": "^2.0.7"},"peerDependencies": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex eefa785a85..67a5f6c8dd 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -36,6 +36,9 @@ catalogs:jsdom:specifier: ^29.0.1version: 29.0.1+ katex:+ specifier: ^0.16.45+ version: 0.16.45lucide-react:specifier: ^1.0.1version: 1.0.1@@ -48,6 +51,12 @@ catalogs:react-dom:specifier: 19.2.3version: 19.2.3+ rehype-katex:+ specifier: ^7.0.1+ version: 7.0.1+ remark-math:+ specifier: ^6.0.0+ version: 6.0.0tailwind-merge:specifier: ^3.4.0version: 3.5.0@@ -528,6 +537,9 @@ importers:input-otp:specifier: ^1.4.2+ katex:+ specifier: 'catalog:'+ version: 0.16.45linkify-it:specifier: ^5.0.0version: 5.0.0@@ -555,12 +567,18 @@ importers:recharts:specifier: 3.8.0version: 3.8.0(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ rehype-katex:+ specifier: 'catalog:'+ version: 7.0.1rehype-raw:specifier: ^7.0.0version: 7.0.0remark-gfm:specifier: ^4.0.1version: 4.0.1+ remark-math:+ specifier: 'catalog:'+ version: 6.0.0shiki:specifier: ^3.21.0version: 3.23.0@@ -685,6 +703,9 @@ importers:hast-util-to-html:specifier: ^4.0.1version: 4.0.1+ katex:+ specifier: 'catalog:'+ version: 0.16.45lowlight:specifier: ^3.3.0version: 3.3.0@@ -706,12 +727,18 @@ importers:recharts:specifier: 3.8.0version: 3.8.0(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ rehype-katex:+ specifier: 'catalog:'+ version: 7.0.1rehype-raw:specifier: ^7.0.0version: 7.0.0remark-gfm:specifier: ^4.0.1version: 4.0.1+ remark-math:+ specifier: 'catalog:'+ version: 6.0.0sonner:specifier: ^2.0.7@@ -2885,6 +2912,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg==}+'@types/[email protected]':resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==}@@ -3469,6 +3499,10 @@ packages:resolution: {integrity: sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==}engines: {node: '>= 6'}+ resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}+ engines: {node: '>= 12'}+resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}engines: {node: ^12.20.0 || >=14}@@ -4424,12 +4458,24 @@ packages:resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-N+LqofjR2zuzTjCPzyDUdSshy4Ma6li7p/c3pA78uTwzFgENbgbUrm2ugwsOdcjI1muO+o6Dgzp9p8WHtn/39Q==}++ resolution: {integrity: sha512-zJfpXq44yff2hmE0XmwEOzdWin5xwH+QIhMLOScpX91e/NSGPsAzNCvLQDIEPyO2TXi+lBmU6hjLIhV8MwP2kw==}++ resolution: {integrity: sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==}+resolution: {integrity: sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==}resolution: {integrity: sha512-oUmNua0bFbdrD/ELDSSEadRVtWZOf3iF6Lbv81naqsIV99RnSCieTbWuWCY8BAeEfKJTKl0gRdokv+dELutHGQ==}+ resolution: {integrity: sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==}+resolution: {integrity: sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==}@@ -4457,6 +4503,9 @@ packages:resolution: {integrity: sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==}+ resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==}+resolution: {integrity: sha512-I5GTdSfhYfAPNztx2xJRQpG8cuDSNt599/7YUn7Gx/WxNMsG+a835k97TDkFgk123cwjfwINaZknkKkphx/f2A==}@@ -4892,6 +4941,10 @@ packages:resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}engines: {node: '>=4.0'}+ resolution: {integrity: sha512-pQpZbdBu7wCTmQUh7ufPmLr0pFoObnGUoL/yhtwJDgmmQpbkg/0HSVti25Fu4rmd1oCR6NGWe9vqTWuWv3GcNA==}+ hasBin: true+resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}@@ -5113,6 +5166,9 @@ packages:resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==}+ resolution: {integrity: sha512-Tl9GBNeG/AhJnQM221bJR2HPvLOSnLE/T9cJI9tlc6zwQk2nPk/4f0cHkOdEixQPC/j8UtKDdITswvLAy1OZ1w==}+resolution: {integrity: sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==}@@ -5182,6 +5238,9 @@ packages:resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==}+ resolution: {integrity: sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg==}+resolution: {integrity: sha512-dD/ADLJ1AeMvSAKBwO22zG22N4ybhe7kFIZ3LsDI0GlsNr2A3KYxb0LdC1u5rj4Nw+CHKY0RVdnHX8vj8ejm4Q==}@@ -6077,6 +6136,9 @@ packages:resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-OiM2wrZ/wuhKkigASodFoo8wimG3H12LWQaH8qSPVJn9apWKFSH3YOCtbKpBorTVw/eI7cuT21XBbvwEswbIOA==}+resolution: {integrity: sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==}@@ -6089,6 +6151,9 @@ packages:resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}+ resolution: {integrity: sha512-MMqgnP74Igy+S3WwnhQ7kqGlEerTETXMvJhrUzDikVZ2/uogJCb+WHUg97hK9/jcfc0dkD73s3LN8zU49cTEtA==}+resolution: {integrity: sha512-Pjj2IYlUY3+D8x00UJsIOg5BEvfMyeI+2uLPn9VO9Wg4MEtN/VTIq2NEJQfde9PnX15KgtHyl9S0BcTnWrIuWg==}@@ -6697,6 +6762,9 @@ packages:resolution: {integrity: sha512-9OdaqO5kwqR+1kVgHAhsp5vPNU0hnxRa26rBFNfNgM7M6pNtgzeBn3s/xbyCQL3dcjzOatcef6UUHpB/6MaETg==}engines: {node: ^18.17.0 || >=20.5.0}+ resolution: {integrity: sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==}+resolution: {integrity: sha512-4WbQX2iwfr/+PfM4U3zd2VNXY+dWtZsN1fLnWEi2QQXA4qyDYAZcDMfXUX0Cu6XZUHHAO9q4nyxxLT4Awk1qUA==}@@ -6709,6 +6777,9 @@ packages:resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==}+ resolution: {integrity: sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==}+resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==}@@ -9110,6 +9181,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/node': 25.5.0@@ -9795,6 +9868,8 @@ snapshots:+ [email protected]: {}+optional: true@@ -10992,6 +11067,28 @@ snapshots:dependencies:function-bind: 1.1.2+ dependencies:+ '@types/hast': 3.0.4+ hastscript: 9.0.1+ web-namespaces: 2.0.1++ dependencies:+ '@types/hast': 3.0.4+ hast-util-from-dom: 5.0.1+ hast-util-from-html: 2.0.3+ unist-util-remove-position: 5.0.0++ dependencies:+ '@types/hast': 3.0.4+ devlop: 1.1.0+ hast-util-from-parse5: 8.0.3+ parse5: 7.3.0+ vfile: 6.0.3+ vfile-message: 4.0.3+dependencies:'@types/hast': 3.0.4@@ -11005,6 +11102,10 @@ snapshots:+ dependencies:+ '@types/hast': 3.0.4+dependencies:'@types/hast': 3.0.4@@ -11113,6 +11214,13 @@ snapshots:dependencies:'@types/hast': 3.0.4+ dependencies:+ '@types/hast': 3.0.4+ '@types/unist': 3.0.3+ hast-util-is-element: 3.0.0+ unist-util-find-after: 5.0.0+@@ -11518,6 +11626,10 @@ snapshots:object.assign: 4.1.7object.values: 1.2.1+ dependencies:+ commander: 8.3.0+dependencies:json-buffer: 3.0.1@@ -11769,6 +11881,18 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ devlop: 1.1.0+ longest-streak: 3.1.0+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ unist-util-remove-position: 5.0.0+ transitivePeerDependencies:+ - supports-color+dependencies:'@types/estree-jsx': 1.0.5@@ -11940,6 +12064,16 @@ snapshots:micromark-util-combine-extensions: 2.0.1micromark-util-types: 2.0.2+ dependencies:+ '@types/katex': 0.16.8+ devlop: 1.1.0+ katex: 0.16.45+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+dependencies:'@types/estree': 1.0.8@@ -13070,6 +13204,16 @@ snapshots:gopd: 1.2.0set-function-name: 2.0.2+ dependencies:+ '@types/hast': 3.0.4+ '@types/katex': 0.16.8+ hast-util-from-html-isomorphic: 2.0.0+ hast-util-to-text: 4.0.2+ katex: 0.16.45+ unist-util-visit-parents: 6.0.2+ vfile: 6.0.3+dependencies:'@types/hast': 3.0.4@@ -13100,6 +13244,15 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ '@types/mdast': 4.0.4+ mdast-util-math: 3.0.0+ micromark-extension-math: 3.1.0+ unified: 11.0.5+ transitivePeerDependencies:+ - supports-color+dependencies:mdast-util-mdx: 3.0.0@@ -13889,6 +14042,11 @@ snapshots:dependencies:imurmurhash: 0.1.4+ dependencies:+ '@types/unist': 3.0.3+ unist-util-is: 6.0.1+@@ -13903,6 +14061,11 @@ snapshots:dependencies:'@types/unist': 3.0.3+ dependencies:+ '@types/unist': 3.0.3+ unist-util-visit: 5.1.0+dependencies:'@types/unist': 3.0.3diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 4e3ac14ad4..cb77874173 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -24,6 +24,9 @@ catalog:tailwind-merge: "^3.4.0"class-variance-authority: "^0.7.1"clsx: "^2.1.1"+ katex: "^0.16.45"+ rehype-katex: "^7.0.1"+ remark-math: "^6.0.0"# Iconslucide-react: "^1.0.1"