Skip to content

Commit

Permalink
fix: all brackets becoming latex delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
iisakkirotko committed Jan 29, 2024
1 parent 4f57bbd commit fc01053
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions solara/components/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _markdown_template(html, style="", vscode=False):
+ style
+ """\">"""
+ html
+ """</div>
+ r"""</div>
</template>
<script>
Expand All @@ -94,8 +94,8 @@ def _markdown_template(html, style="", vscode=False):
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false},
{left: "\\[", right: "\\]", display: false},
{left: "\\(", right: "\\)", display: true}
{left: "\\[", right: "\\]", display: true},
{left: "\\(", right: "\\)", display: false}
]
});
} else if (window.MathJax && MathJax.Hub) {
Expand All @@ -107,8 +107,8 @@ def _markdown_template(html, style="", vscode=False):
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "$", right: "$", display: false},
{left: "\\[", right: "\\]", display: false},
{left: "\\(", right: "\\)", display: true}
{left: "\\[", right: "\\]", display: true},
{left: "\\(", right: "\\)", display: false}
]
});
}
Expand Down

0 comments on commit fc01053

Please sign in to comment.