Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(matrix): preserve mxc markdown image sources
chengyongru4137be62a118
diff --git a/nanobot/channels/matrix.py b/nanobot/channels/matrix.pyindex 8a2fc9d88..9e10fe83f 100644--- a/nanobot/channels/matrix.py+++ b/nanobot/channels/matrix.py@@ -18,7 +18,7 @@ from nanobot.security.workspace_policy import is_path_withintry:import aiohttpimport nh3- from mistune import create_markdown+ from mistune import HTMLRenderer, create_markdownfrom nio import (AsyncClient,AsyncClientConfig,@@ -77,7 +77,7 @@ class _MediaTooLargeError(Exception):"""Raised when an inbound Matrix media download exceeds the configured cap."""MATRIX_MARKDOWN = create_markdown(- escape=True,+ renderer=HTMLRenderer(escape=True, allow_harmful_protocols=("mxc://",)),plugins=["table", "strikethrough", "url", "superscript", "subscript"],)