mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Merge pull request #1495 from MarkQuach12:bugfix/tag-star-linter-warning
GitOrigin-RevId: 3d66ca34c16e2820e3051ce81ab67abba54cde13
This commit is contained in:
+12
@@ -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}}'
|
||||
|
||||
Reference in New Issue
Block a user