Jump to content

Module:Sandbox/trappist the monk/math

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Trappist the monk (talk | contribs) at 15:48, 14 September 2021 (create;). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
require('Module:No globals');

local function math_test (frame)
	local out = frame.args.math_text:gsub ('%$([^%$]-)%$', '<math display=inline>%1</math>')
	return frame:preprocess (out);
end

return 
	{
	math_test = math_test,
	}