The following plugin setup for mathjax:
mdc: {
remarkPlugins: {
'remark-math': {},
},
rehypePlugins: {
'rehype-mathjax': {},
},
}
results in this warning:
A workaround to solve it is to define the following MjxContainer component in components/mdc:
<template>
<!--
We need this component to prevent the MjxContainer component unknown error (likely a bug).
If "display" is true, we render block math with a div, otherwise inline math with a span.
-->
<component :is="$attrs.display ? 'div' : 'span'" v-bind="$attrs">
<slot />
</component>
</template>