Merge pull request #1495 from MarkQuach12:bugfix/tag-star-linter-warning

GitOrigin-RevId: 3d66ca34c16e2820e3051ce81ab67abba54cde13
This commit is contained in:
Copybot
2026-09-17 11:25:09 +00:00
2 changed files with 25 additions and 1 deletions
@@ -350,6 +350,18 @@ describe('LatexLinter', function () {
assert.equal(errors.length, 0)
})
it('should accept math tag* commands', function () {
const { errors } = Parse(
'\\begin{align}\n\\pi=3 \\tag*{\\(\\dagger\\)}\n\\end{align}\n'
)
assert.equal(errors.length, 0)
})
it('should accept math tag* commands with $ math mode', function () {
const { errors } = Parse('$\\tag*{$abc$}$\n')
assert.equal(errors.length, 0)
})
it('should accept math \\def commands', function () {
const { errors } = Parse(
'\\def\\peb[#1]{{\\left\\lfloor #1\\right\\rfloor}}'