> ## Documentation Index
> Fetch the complete documentation index at: https://ophel.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Content enhancements: Mermaid, formulas, and Markdown

> Render Mermaid diagrams and formulas, copy LaTeX or MathML source, format your own messages in Markdown, copy tables in one click, and export conversations.

export const Icon = ({src, alt}) => <img src={typeof window !== "undefined" && typeof src === "string" && src.startsWith("/images/icons/") && (window.location.pathname === "/docs" || window.location.pathname.startsWith("/docs/")) ? `/docs${src}` : src} alt={alt} width="18" height="18" style={{
  display: "inline-block",
  verticalAlign: "-0.2em",
  margin: "0 0.15em"
}} />;

Ophel adds a layer of interactivity to AI conversation pages: diagrams that some platforms leave as raw code get rendered automatically, formulas become copyable with a double-click, your own messages display Markdown formatting, and any conversation can be exported in multiple formats.

## Mermaid diagram rendering

Some AI platforms display Mermaid code blocks as raw text instead of rendered diagrams. When Ophel detects an unrendered Mermaid block, it renders the diagram in place automatically.

**Settings → Features → Content → Render Mermaid in AI replies** (default: on)

<Note>
  This only activates when the platform itself has not rendered the Mermaid
  block. It will not interfere with native diagram rendering.
</Note>

## Formula rendering and source copy

When an AI reply contains math, Ophel recognizes LaTeX delimiters and renders the formulas inline. To copy the source from any supported rendered formula, double-click it — Ophel copies the selected source format to your clipboard immediately.

**Settings → Features → Content → Double-click to copy formula** (default: on)

### Formula copy format

Choose whether double-clicking a formula copies:

* **LaTeX source** — best for Markdown notes, TeX editors, Obsidian, Typora, and most AI prompts
* **MathML source** — best for accessibility workflows, web documents, and tools that preserve structured math markup

**Settings → Features → Content → Formula copy format** (default: LaTeX source)

<Note>
  Some sites expose only visual formula HTML and no stable source. In that case,
  Ophel shows a message instead of copying an unreliable result.
</Note>

### LaTeX delimiters

When the copy format is **LaTeX source**, Ophel can add delimiters before placing the text on the clipboard:

* Inline formulas use `$ ... $`
* Block formulas use `$$ ... $$`

Enable **Settings → Features → Content → Add delimiter when copying** if the destination expects complete Markdown-style math snippets.

## User message Markdown rendering

Markdown syntax you type in the AI input box — `**bold**`, `` `code` ``, `- list item` — normally appears as plain text in your message bubble after sending. With this feature enabled, Ophel renders Markdown formatting inside your messages so they're easier to read.

**Settings → Features → Content → Render Markdown in user messages** (default: on)

## Markdown table copy

A **Copy** button appears on tables inside AI replies. Clicking it copies the table as standard Markdown table syntax, ready to paste into any Markdown editor.

**Settings → Features → Content → Copy Markdown tables** (default: on)

## Conversation export

Export any conversation to a file from <Icon src="/docs/images/icons/tools.svg" alt="Toolbox icon" /> **Toolbox** → <Icon src="/docs/images/icons/export.svg" alt="Export icon" /> **Export**. The quick button exports <Icon src="/docs/images/icons/markdown.svg" alt="Markdown file icon" /> Markdown; the Conversations tab row menu also lets you choose <Icon src="/docs/images/icons/json-file.svg" alt="JSON file icon" /> JSON or <Icon src="/docs/images/icons/txt-file.svg" alt="TXT file icon" /> TXT.

<AccordionGroup>
  <Accordion title="Markdown (.md)">
    Exports the full conversation with speaker labels and message content
    formatted as Markdown. Useful for pasting into notes apps, wikis, or
    documentation.
  </Accordion>

  <Accordion title="JSON (.json)">
    Exports structured data including metadata. Useful for programmatic
    processing or archiving.
  </Accordion>

  <Accordion title="Plain text (.txt)">
    Exports a clean, unformatted transcript.
  </Accordion>
</AccordionGroup>

**Settings → Features → Export** controls export behavior:

| Setting                       | Description                                                                                                                      |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| Custom user name              | Replaces "Me" in exported files; leave blank to use the default                                                                  |
| Custom AI name                | Replaces the AI's name in exported files; leave blank to use the platform name                                                   |
| Include timestamp in filename | Appends a timestamp to the filename to avoid overwriting existing exports                                                        |
| Include chain of thought      | Include the AI's reasoning content in exports (Claude, Kimi, Qwen Studio, Yuanbao, Z.ai, ChatGLM, Ima)                           |
| Packaging mode                | **Markdown only** exports a single `.md` file; **Zip package** bundles the Markdown with referenced images and files as a `.zip` |

<Tip>
  For a detailed explanation of the zip package structure, asset handling per
  platform, and advanced export capabilities (Deep Research reports, Canvas code,
  document artifacts), see the dedicated [Export](/docs/features/export) page.
</Tip>

## Platform-specific fixes

<AccordionGroup>
  <Accordion title="Markdown fix (Gemini, AI Studio, ChatGPT)">
    These platforms sometimes fail to render bold text correctly — `**text**` appears as literal characters instead of formatted output. Ophel includes a patch for each affected platform.

    * **Settings → Site Settings → Gemini → Markdown fix**
    * **Settings → Site Settings → AI Studio → Markdown fix**
    * **Settings → Site Settings → ChatGPT → Markdown fix**
  </Accordion>

  <Accordion title="Watermark removal (Gemini, AI Studio)">
    Gemini and AI Studio can attach "Created with Gemini" watermarks when exporting or screenshotting certain content. Enabling this removes those watermarks.

    This feature requires the optional `<all_urls>` permission (used to fetch images and convert them to base64). The browser will prompt for permission the first time you enable it.

    **Settings → Site Settings → Gemini → Remove watermark**
  </Accordion>
</AccordionGroup>
