Skip to content

Commit

Permalink
adjust escapeLatexDelimiters parameter naming
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Feb 7, 2024
1 parent 4853375 commit fd56bbe
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(latexString: string) {
return latexString
function escapeLatexDelimiters(str: string) {
return str
.replace(/\\\(/g, '\\\\(')
.replace(/\\\)/g, '\\\\)')
.replace(/\\\[/g, '\\\\[')
Expand Down

0 comments on commit fd56bbe

Please sign in to comment.