Skip to content

Commit

Permalink
allow square brackets for displayed equations
Browse files Browse the repository at this point in the history
  • Loading branch information
kaze-droid committed Oct 2, 2024
1 parent 50dd83e commit 75234f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/gui/examples/controls/text-latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
You can insert *LaTeX* in a `text` control to
display math equations.
Display Equations:
Displayed Equations:
$$Attention(Q, K, V) = softmax(\\frac{QK^T}{\\sqrt{d_k}})V$$
Inline Equations:
Expand Down
2 changes: 1 addition & 1 deletion frontend/taipy-gui/src/components/Taipy/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const Field = (props: TaipyFieldProps) => {
<MathJaxContext config={{
tex: {
inlineMath: [["$", "$"], ["\\(", "\\)"]],
displayMath: [["$$", "$$"]],
displayMath: [["$$", "$$"], ["\\[", "\\]"]],
}
}}>
<MathJax className={className} id={id}>
Expand Down

0 comments on commit 75234f4

Please sign in to comment.