mathml 3

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 565
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC

mathml 3

Post by Vegan »

Code: Select all

<math xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mrow><mi mathvariant="italic">a</mi><mi mathvariant="italic">b</mi></mrow><mrow><mi mathvariant="italic">a</mi><mi mathvariant="italic">b</mi></mrow></mfrac></math>
That is the output from MSFT Equation version 4, this program is free

So any suggestions on how to fix the wordpress block to recognize this as valid?
Hardcore Games™ Legendary is the Only Way to Play™
User avatar
Benjamin
Site Administrator
Posts: 6911
Joined: Sun May 19, 2002 10:24 pm

Re: mathml 3

Post by Benjamin »

What is it blocking? Maybe add a custom shortcode or something.
User avatar
Vegan
Forum Regular
Posts: 565
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC

Re: mathml 3

Post by Vegan »

I tried a a chunk of code and WP installed a new Gutenberg block but that is the extent of it. Microsoft Equation is very old now. So is MathML.

https://wordpress.org/plugins/mathml-block/

This the plugin that Gutenberg was programmed to grab

\begin{bmatrix} a \\ b \end{bmatrix}

is an example of the code that works as desired, notice no mathml tags but yet this is described as mathml
so i griped for manual as the syntax is different


Microsofts tool

https://www.microsoft.com/en-ca/downloa ... x?id=15702

Web based solver is new and I have not checked it out

https://math.microsoft.com/en
Hardcore Games™ Legendary is the Only Way to Play™
User avatar
Vegan
Forum Regular
Posts: 565
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC

Re: mathml 3

Post by Vegan »

Turns out that Latex is the syntax used so the MathML is misidentified with Wordpress. JetPack has Latex support for self hosted hosts.
Hardcore Games™ Legendary is the Only Way to Play™
Post Reply