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
docs(matrix): document raw html escaping in markdown renderer
Alexander Minges7b2adf9d9dab
diff --git a/nanobot/channels/matrix.py b/nanobot/channels/matrix.pyindex 8240b51ce..f00f3216e 100644--- a/nanobot/channels/matrix.py+++ b/nanobot/channels/matrix.py@@ -32,6 +32,10 @@ MATRIX_HTML_FORMAT = "org.matrix.custom.html"# that Matrix clients (e.g. Element/FluffyChat) can render consistently.# We intentionally avoid plugins that emit less-portable tags to keep output# predictable across clients.+# escape=True is intentional: raw HTML from model output is rendered as text,+# not as live HTML. This includes Matrix-specific raw snippets such as+# <span data-mx-...> and <div data-mx-maths>, unless we later add explicit+# structured support for those features.MATRIX_MARKDOWN = create_markdown(escape=True,plugins=["table", "strikethrough", "url", "superscript", "subscript"],