Skip to content

Commit

Permalink
Rename escapeLatexDelimiters argument from str to text
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Feb 7, 2024
1 parent fd56bbe commit 1841bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/src/components/rendermime-markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, '\\\\[')
Expand Down

0 comments on commit 1841bac

Please sign in to comment.