Skip to main content

Markdown and Chart Rendering

Companion replies are rendered as rich Markdown. Headings, lists, tables, code blocks, formulas, and diagrams can be read directly in the chat, and copied either as plain text or as Markdown.

Supported Content

ContentBehavior
MarkdownHeadings, lists, tables, and code blocks are formatted automatically
MermaidRendered as diagrams with fullscreen preview
KaTeX / LaTeXInline and block math are typeset
.md pathsTrusted assistant replies can expose clickable local Markdown paths
ImagesImage attachments can be previewed and exported

Mermaid Diagrams

Mermaid blocks are rendered inline. Click a diagram to open fullscreen preview, then zoom with the wheel, drag to pan, or reset the view to fit the screen.

If rendering fails, DesireCore keeps the original code block so you can ask the Companion to fix it.

Math Formulas

DesireCore supports common LaTeX syntax:

  • Inline: $E = mc^2$
  • Block: $$\int_a^b f(x) dx$$

Long formulas scroll inside the message bubble instead of breaking the layout.

Copying

ActionResult
CopyPlain text for chat or regular documents
Copy MarkdownPreserves headings, lists, code blocks, tables, and diagram source