Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

MathML Block

Описание

Блок MathML для редактора блоков WordPress (Gutenberg).
Требуется PHP 5.4 или выше и WordPress 5.0 или выше.

Разработка ведётся в репозитории на GitHub: https://github.com/adamsilverstein/mathml-block.

Скринкаст: https://cl.ly/c0f6bbfbc3b1

What is MathML?

Математический язык разметки — это язык математической разметки, XML-приложение для описания математических обозначений и записи как его структуры, так и содержания. Он направлен на интеграцию математических формул в страницы Всемирной паутины и другие документы.

The MathML block uses MathJax to render MathML formulas in the editor and on the front end of a website. MathJax (https://www.mathjax.org/) is A JavaScript display engine for mathematics that works in all browsers.

Чтобы проверить блок MathML, введите формулу, например: \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\].

Чтобы проверить использование встроенных математических формул, введите формулу в блок текста, выделите её и щёлкните значок «M» в панели управления. Например: \( \cos(θ+φ)=\cos(θ)\cos(φ)−\sin(θ)\sin(φ) \). Примечание: если вы копируете и вставляете формулы в редактор форматированного текста, переход в режим редактора HTML или кода с меньшей вероятностью приведёт к переформатированию вставленной формулы.

This plugin is compatible with the official AMP plugin by rendering amp-mathml on AMP pages.

Technical Notes

  • Requires PHP 5.6+.
  • Требуется WordPress 5.0 или выше.
  • Issues and Pull requests welcome on the GitHub repository: https://github.com/adamsilverstein/mathml-block.

Скриншоты

  • Example of adding a MathML block.

Блоки

Этот плагин предоставляет 1 блок.

  • MathML block Display MathML formulas.

Установка

  1. Или установите плагин через установщик плагинов, или найдите его в каталоге и загрузите ZIP-файл.
  2. Активируйте плагин.
  3. Пользуйтесь блоком MathML!

Отзывы

22.09.2023
I instaled and tried to use this plugin. I visits all provided urls by searching the documetation on how can i use the math formulas into the inline syntax that the plugin requires. Unfortunatelly i did not find anything usefull for a simple user, only for developers.
12.10.2022
It is an excellent plugin. I have been using it for 2 years and it has worked well for me. It had some bugs related to amp, for example, some arrays weren't displaying properly but with this update, everything seems to be fixed. In good time they updated it. Thank you!!
10.10.2019
The best way I have found to write math formulas on the web. I just need to remember the LaTex syntax I haven't used in 15 years!
21.05.2019
Really too greedy the MathJax js files are loaded everywhere, even outside the editor and pages, it makes the website too heavy, but it is very clean visually and very simple certainly one of the easiest to use!
Посмотреть все 4 отзыва

Участники и разработчики

«MathML Block» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«MathML Block» переведён на 4 языка. Благодарим переводчиков за их работу.

Перевести «MathML Block» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.2.2

Tested up to 6.1.

1.2.0

  • Add AMP compatibility, props @westonruter. Leverages the amp-mathml component.

1.1.5

  • Make JavaScript translatable, take 2.

1.1.1

  • Improve translations, make JavaScript translatable.
  • Update all packages.

1.1.0

  • Add support for inline formulas.

1.0.0

  • Initial plugin release