дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 13:32:29 +02:00
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]>
14 рядки
169 B
CSS
14 рядки
169 B
CSS
.katex {
|
|
overflow-wrap: normal;
|
|
}
|
|
|
|
.katex-display {
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.katex-error {
|
|
color: var(--danger) !important;
|
|
}
|