Description
openedon Sep 22, 2024
For a while, I've been getting Vue warnings about failure to resolve MathML tags during rendering with MDC. Initially I tried to set compilerOptions.isCustomElement
to suppress the warnings but it seemed ignored when used with MDC (#250).
Vue added support for MathML tags all the way back in 3.4, and Katex's output seemed to be correct, so it has to come from MDC.
It seems to come from here:
mdc/src/runtime/components/MDCRenderer.vue
Lines 340 to 342 in 150e2d4
due to MathML tags not being included in htmlTags
, thus the component tries to resolve it as a Vue component.
I'm willing to create a PR if all it requires is adding the MathML tags to runtime/parser/utils/html-tags-list.ts
.
EDIT: this also affects the <line>
and <path>
tags used by inline SVGs