Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Sami Määttä
Sami Määttä
@SamiMaatta@mementomori.social  ·  activity timestamp 2 weeks ago

Edit: The problem seems to be that the setting isn't allowed for this Wordpress site. New order in then!

Does anybody have experience with Wordpress's "math block"? I can use LaTeX as input, but not MathML, even though it should be possible according to the site https://wordpress.org/documentation/article/math-block/.

LaTeX renders as math and MathML, but MathML doesn't get rendered.

#math #mathML #LaTeX #wordpress

  • Copy link
  • Flag this post
  • Block
Christian Lawson-Perfect
Christian Lawson-Perfect
@christianp@mathstodon.xyz replied  ·  activity timestamp last week

@SamiMaatta where did you get that there's a setting?
Looking at the source code (https://github.com/WordPress/gutenberg/blob/a2338dffffbcfcdf7b05d087e2178d82847ca0ba/packages/block-library/src/math/edit.js), I can't see how it would take MathML input: it looks like it always tries to run it through the LaTeX to MathML routine.

You can put MathML in the custom HTML block, though.

2 media
Screenshot of the custom HTML block with some MathML code in it.
Screenshot of the custom HTML block with some MathML code in it.
Screenshot of the custom HTML block with some MathML code in it.
Screenshot of the custom HTML block showing a preview rendering of the maths.
Screenshot of the custom HTML block showing a preview rendering of the maths.
Screenshot of the custom HTML block showing a preview rendering of the maths.
GitHub

gutenberg/packages/block-library/src/math/edit.js at a2338dffffbcfcdf7b05d087e2178d82847ca0ba · WordPress/gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository. - WordPress/gutenberg
  • Copy link
  • Flag this comment
  • Block
Sami Määttä
Sami Määttä
@SamiMaatta@mementomori.social replied  ·  activity timestamp last week

@christianp oh, okay! I only assumed so based on a discussion with my coworker and based on the docs, which states that you could input MathML code. We assumed we must be missing a setting somewhere.

  • Copy link
  • Flag this comment
  • Block
Sami Määttä
Sami Määttä
@SamiMaatta@mementomori.social replied  ·  activity timestamp 2 weeks ago

Oh, apparently there is a setting that has to be changed for MathML input. Now to just find the setting...

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct