дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 10:07:11 +02:00
feat(markdown): render LaTeX math with KaTeX (#4138)
Markdown views (file preview, agent chat, notebook Markdown cells, LSP/GitHub/plugin Markdown) now typeset $...$, $$...$$, \(...\), \[...\] and ```math blocks with KaTeX. The marked extension emits [data-math] placeholders that survive DOMPurify and are typeset after sanitizing (trust: false); inline $ follows Pandoc's rules, so currency like $5 and $10 stays text. The Markdown preview keeps the placeholders in its rendered HTML and typesets them after each render, like Mermaid diagrams, so its per-block sanitize cache is unaffected. New dependency: katex 0.19.1 (MIT). Co-authored-by: zzxzz12345 <[email protected]>
Цей коміт міститься в:
1 джерело
79accd1311
коміт
4e5dbc8e0c
16 files changed
+433
-12
No files matched your search
@@ -0,0 +1,13 @@
|
||||
.katex {
|
||||
overflow-wrap: normal;
|
||||
}
|
||||
|
||||
.katex-display {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.katex-error {
|
||||
color: var(--danger) !important;
|
||||
}
|
||||
Reference in new issue
Заблокувати користувача