diff --git a/src/elements/math-markdown/math-markdown.jsx b/src/elements/math-markdown/math-markdown.jsx
index 40ab7f89..60153c15 100644
--- a/src/elements/math-markdown/math-markdown.jsx
+++ b/src/elements/math-markdown/math-markdown.jsx
@@ -13,7 +13,12 @@ const MathMarkdown = (props) => {
)
rest.output = 'htmlAndMathml'
- if (children === null || children === undefined) return
+ if (
+ children === null ||
+ children === undefined ||
+ typeof children !== 'string'
+ )
+ return
const renderUs = utils.latexify(children, rest)
return {renderUs}