Skip to content

Commit

Permalink
Merge pull request #2222 from Omikhleia/refactor-useless-math
Browse files Browse the repository at this point in the history
refactor(math): Remove useless TeX-like syntax construct
  • Loading branch information
alerque authored Feb 20, 2025
2 parents c789e4b + eba6653 commit 65979c9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/math/texlike.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,7 @@ local mathGrammar = function (_ENV)
+ lpeg.R("\240\244") * utf8cont * utf8cont * utf8cont
-- Identifiers inside \mo and \mi tags
local sileID = C(bits.identifier + P(1)) / 1
local mathMLID = (utf8code - S"\\{}%")^1 / function (...)
local ret = ""
local t = {...}
for _,b in ipairs(t) do
ret = ret .. b
end
return ret
end

local group = P"{" * V"mathlist" * (P"}" + E("`}` expected"))
-- Simple amsmath-like \text command (no embedded math)
local textgroup = P"{" * C((1-P"}")^1) * (P"}" + E("`}` expected"))
Expand Down

0 comments on commit 65979c9

Please sign in to comment.