[WordPress] 外掛分享: MathML Block

首頁外掛目錄 › MathML Block
WordPress 外掛 MathML Block 的封面圖片
1,000+
安裝啟用
★★★☆☆
3.8/5 分(4 則評價)
313 天前
最後更新
問題解決
WordPress 5.0+ PHP 5.6+ v1.2.3 上架:2018-12-27

內容簡介

這個 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。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.
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.

延伸相關外掛

文章
Filter
Mastodon