From fb85b57ee9aecb086f659bdd6b450519b89059ef Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Wed, 9 Sep 2026 04:42:05 -0700 Subject: [PATCH] docs(matrix): note LaTeX math rendering in the Matrix behaviour table --- website/docs/user-guide/messaging/matrix.md | 1 + .../current/user-guide/messaging/matrix.md | 1 + 2 files changed, 2 insertions(+) diff --git a/website/docs/user-guide/messaging/matrix.md b/website/docs/user-guide/messaging/matrix.md index 39124393ed..f8505fac6d 100644 --- a/website/docs/user-guide/messaging/matrix.md +++ b/website/docs/user-guide/messaging/matrix.md @@ -24,6 +24,7 @@ Before setup, here's the part most people want to know: how Hermes behaves once | **Interactive controls** | Dangerous-command approval and `/model` selection can use Matrix reactions. Approval reactions can be limited to the user who requested the action. | | **Thinking and tool activity** | Matrix uses threaded, editable thinking/tool-activity panes when gateway progress is enabled, so updates do not flood the main room timeline. | | **Shared rooms with multiple users** | By default, Hermes isolates session history per user inside the room. Two people talking in the same room do not share one transcript unless you explicitly disable that. | +| **LaTeX math** | `$...$` (inline) and `$$...$$` (display) in replies are sent as Element `data-mx-maths` markup, so clients with **Settings → Labs → Render LaTeX maths in messages** typeset them with KaTeX. Unpaired dollars (`$5 or $10`) stay literal, and the plain-text `body` keeps the raw TeX for other clients. | :::tip The bot automatically joins rooms when invited. Just invite the bot's Matrix user to any room and it will join and start responding. diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.md index fd9c552bbc..b289a08282 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/messaging/matrix.md @@ -21,6 +21,7 @@ Hermes 兼容任何 Matrix homeserver——Synapse、Conduit、Dendrite 或 matr | **线程** | Hermes 支持 Matrix 线程(MSC3440)。在线程中回复时,Hermes 会将线程上下文与主房间时间线隔离。机器人已参与的线程无需提及即可响应。 | | **自动线程** | 默认情况下,Hermes 会为其在房间中响应的每条消息自动创建线程,以保持对话隔离。设置 `MATRIX_AUTO_THREAD=false` 可禁用此功能。设置 `MATRIX_DM_AUTO_THREAD=true`(默认 false)可同时为私聊消息自动创建线程——这与 `MATRIX_DM_MENTION_THREADS` 不同,后者仅在私聊中 @提及 Bot 时才创建线程。 | | **多用户共享房间** | 默认情况下,Hermes 在房间内按用户隔离会话历史。同一房间中的两个人不会共享同一对话记录,除非你明确禁用该功能。 | +| **LaTeX 数学公式** | 回复中的 `$...$`(行内)和 `$$...$$`(独立行)会以 Element 的 `data-mx-maths` 标记发送,启用了 **设置 → 实验室 → 渲染消息中的 LaTeX 数学公式** 的客户端会用 KaTeX 排版。未配对的美元符号(`$5 or $10`)保持原样,纯文本 `body` 仍保留原始 TeX 供其他客户端显示。 | :::tip 机器人在被邀请时会自动加入房间。只需将机器人的 Matrix 用户邀请到任意房间,它就会加入并开始响应。