Discussion
Loading...

Post

  • Log in
  • Sign up
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Sami Määttä
Sami Määttä
@SamiMaatta@mementomori.social  ·  activity timestamp 3 months 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

#mathml #latex #math #wordpress
  • Copy link
  • Flag this post
  • Block
Christian Lawson-Perfect
Christian Lawson-Perfect
@christianp@mathstodon.xyz  ·  activity timestamp 3 months ago

@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  ·  activity timestamp 3 months ago

@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  ·  activity timestamp 3 months 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
Instance logo
bonfire.cafe
Log in Create account
Banner for bonfire.cafe

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire bovenjan · 1.0.3-alpha.10 no JS en
Federation disabled
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct

Install bonfire.cafe

Get the full app experience

1 Tap Share 2 Add to Home Screen