diff --git a/src/components/HTMLLoader.jsx b/src/components/HTMLLoader.jsx
index f98734bc..1fe7d661 100644
--- a/src/components/HTMLLoader.jsx
+++ b/src/components/HTMLLoader.jsx
@@ -23,9 +23,10 @@ const baseConfig = {
function HTMLLoader({ htmlNode, componentId, cssClassName }) {
const isLatex = htmlNode.match(/(\${1,2})((?:\\.|.)*)\1/)
- || htmlNode.match(/(\[mathjax](.+?)\[\\mathjax])+/)
- || htmlNode.match(/(\[mathjaxinline](.+?)\[\\mathjaxinline])+/)
- || htmlNode.match(/(\\\[(.+?)\\\])+/);
+ || htmlNode.match(/(\[mathjax](.+?)\[\/mathjax])+/)
+ || htmlNode.match(/(\[mathjaxinline](.+?)\[\/mathjaxinline])+/)
+ || htmlNode.match(/(\\\[(.+?)\\\])+/)
+ || htmlNode.match(/(\\\((.+?)\\\))+/);
return (
isLatex ? (