mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix: align markdown code renderer with marked token typing
This commit is contained in:
@@ -141,7 +141,7 @@ htmlEscapeRenderer.code = ({
|
||||
}: {
|
||||
text: string;
|
||||
lang?: string;
|
||||
escaped: boolean;
|
||||
escaped?: boolean;
|
||||
}) => {
|
||||
const langClass = lang ? ` class="language-${lang}"` : "";
|
||||
const safeText = escaped ? text : escapeHtml(text);
|
||||
|
||||
Reference in New Issue
Block a user