mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Handle KaTeX warnings (#13760)
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com> Fixes #13735
This commit is contained in:
committed by
GitHub
parent
75259636c8
commit
6334948515
@@ -525,11 +525,10 @@ disableKinds = ['page','rss','section','sitemap','taxonomy','term']
|
||||
b.AssertFileContent("public/index.html", `<annotation encoding="application/x-tex">a %</annotation>`)
|
||||
|
||||
// strict: warn
|
||||
// TODO: see https://github.com/gohugoio/hugo/issues/13735
|
||||
// f = strings.ReplaceAll(files, "dict", `(dict "strict" "warn")`)
|
||||
// b = hugolib.Test(t, f, hugolib.TestOptWarn())
|
||||
// b.AssertLogMatches("[commentAtEnd]")
|
||||
// b.AssertFileContent("public/index.html", `<annotation encoding="application/x-tex">a %</annotation>`)
|
||||
f = strings.ReplaceAll(files, "dict", `(dict "strict" "warn")`)
|
||||
b = hugolib.Test(t, f, hugolib.TestOptWarn())
|
||||
b.AssertLogMatches("[commentAtEnd]")
|
||||
b.AssertFileContent("public/index.html", `<annotation encoding="application/x-tex">a %</annotation>`)
|
||||
|
||||
// strict mode: invalid value
|
||||
f = strings.ReplaceAll(files, "dict", `(dict "strict" "foo")`)
|
||||
|
Reference in New Issue
Block a user