前言介紹
- 這款 WordPress 外掛「MathML Block」是 2018-12-27 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2022-10-11,距離現在已有 935 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 4 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
math | block | mathml | gutenberg | block-editor |
內容簡介
這個 WordPress 區塊編輯器 (Gutenberg) 的外掛程式提供 MathML 區塊。
需要 PHP 5.4+ 和 WordPress 5.0+。
開發專案位於 GitHub 存儲庫:https://github.com/adamsilverstein/mathml-block。
螢幕錄製:https://cl.ly/c0f6bbfbc3b1
什麼是 MathML?
數學標記語言是一種數學標記語言,是 XML 的一種應用程式,用於描述數學表示法並捕獲其結構和內容。它旨在將數學公式集成到網頁和其他文件中。
MathML 區塊使用 MathJax 在編輯器和網站的前端呈現 MathML 公式。MathJax (https://www.mathjax.org/) 是一個適用於所有瀏覽器的 JavaScript 數學顯示引擎。
要測試 MathML 區塊並輸入公式,例如:\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]。
要測試使用數學公式內嵌,請將公式輸入一段文字區塊中,選擇該公式並按控制列中的 ‘M’ 圖示。例如:\( \cos(θ+φ)=\cos(θ)\cos(φ)−\sin(θ)\sin(φ) \)。注意:如果您將公式複製並貼上到豐富文字編輯器中,切換到 HTML /代碼編輯器模式可能不會重新格式化貼上的公式。
此外,此外掛程式與官方 AMP 外掛程式兼容,通過在amp-mathml 上呈現在 AMP 頁面上。
技術註解
需要 PHP 5.6+。
需要 WordPress 5.0+。
歡迎在 GitHub 存儲庫上提交問題和請求:https://github.com/adamsilverstein/mathml-block。
原文外掛簡介
A MathML block for the WordPress block editor (Gutenberg).
Requires PHP 5.4+ and WordPress 5.0+.
Development takes place on the GitHub repository: https://github.com/adamsilverstein/mathml-block.
Screencast: https://cl.ly/c0f6bbfbc3b1
What is MathML?
Mathematical Markup Language is a mathematical markup language, an application of XML for describing mathematical notations and capturing both its structure and content. It aims at integrating mathematical formulae into World Wide Web pages and other documents.
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.
To test a MathML block and enter a formula, for example: \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\].
To test using math formulas inline, type an formula into a block of text, select it and hit the ‘M’ icon in the control bar. For example: \( \cos(θ+φ)=\cos(θ)\cos(φ)−\sin(θ)\sin(φ) \). Note: if you are copying and pasting formulas into the rich text editor, switching to HTML/code editor mode is less likely to reformat your pasted formula.
This plugin is compatible with the official AMP plugin by rendering amp-mathml on AMP pages.
Technical Notes
Requires PHP 5.6+.
Requires WordPress 5.0+.
Issues and Pull requests welcome on the GitHub repository: https://github.com/adamsilverstein/mathml-block.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「MathML Block」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.0b |
延伸相關外掛(你可能也想知道)
MathJax-LaTeX 》MathJax 可以在 HTML 網頁中渲染 LaTeX 或 MathML 的內嵌式程式碼,此外掛為 WordPress 新增了這項功能。此外掛只會在需要時才會動態注入 MathJax JavaScript...。
WP Math Publisher – wpmathpub 》在文章、頁面和評論中顯示數學方程式。, 將您的純文本數學表示式放在 [pmath size=xx]...[/pmath] 短碼標籤之間。有用的 xx 大小整數值範圍為 8 到 24(預設...。