I noticed that when running Gutenberg trunk with WP 6.9, the Math format triggers an error. The same error occurs when inserting the math block.
Uncaught (in promise) TypeError: Failed to resolve module specifier '@wordpress/latex-to-mathml'
|
useEffect( () => { |
|
import( '@wordpress/latex-to-mathml' ).then( ( module ) => { |
|
setLatexToMathML( () => module.default ); |
|
} ); |
|
}, [] ); |
|
useEffect( () => { |
|
import( '@wordpress/latex-to-mathml' ).then( ( module ) => { |
|
setLatexToMathML( () => module.default ); |
|
if ( initialLatex.current ) { |
|
__unstableMarkNextChangeAsNotPersistent(); |
|
setAttributes( { |
|
mathML: module.default( initialLatex.current, { |
|
displayMode: true, |
|
} ), |
|
} ); |
|
} |
|
} ); |
|
}, [ |
|
initialLatex, |
|
setAttributes, |
|
__unstableMarkNextChangeAsNotPersistent, |
|
] ); |
I noticed that when running Gutenberg trunk with WP 6.9, the Math format triggers an error. The same error occurs when inserting the math block.
gutenberg/packages/format-library/src/math/index.js
Lines 133 to 137 in d419b56
gutenberg/packages/block-library/src/math/edit.js
Lines 35 to 51 in d419b56