From 1841bac0a9853b8f953ff070bb73a80ff3d7abe7 Mon Sep 17 00:00:00 2001 From: Andrii Ieroshenko Date: Wed, 7 Feb 2024 11:55:34 -0800 Subject: [PATCH] Rename escapeLatexDelimiters argument from str to text --- packages/jupyter-ai/src/components/rendermime-markdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jupyter-ai/src/components/rendermime-markdown.tsx b/packages/jupyter-ai/src/components/rendermime-markdown.tsx index ba2c27ddb..80616c19d 100644 --- a/packages/jupyter-ai/src/components/rendermime-markdown.tsx +++ b/packages/jupyter-ai/src/components/rendermime-markdown.tsx @@ -15,8 +15,8 @@ type RendermimeMarkdownProps = { /** * Escape LaTeX delimeters by adding extra backslashes where needed for proper rendering by @jupyterlab/rendermime. */ -function escapeLatexDelimiters(str: string) { - return str +function escapeLatexDelimiters(text: string) { + return text .replace(/\\\(/g, '\\\\(') .replace(/\\\)/g, '\\\\)') .replace(/\\\[/g, '\\\\[')