On Sun, 20 Nov 2022 at 16:47, Scott Kostyshak <[email protected]> wrote:
> On Sun, Nov 20, 2022 at 04:33:36PM +0100, Thibaut Cuvelier wrote: > > > When I open the exported de Math.xhtml in Chromium, I get: > > > > > > "error on line 7159 at column 22: Entity 'imaginary' not defined" > > > > > > > That's unrelated to this branch, it was a problem in the MathML > > configuration. > > Ah, I was wondering why xmllint didn't catch it but I guess it doesn't > catch MathML issues. Probably there is a way to catch them in the > ctests, but I don't know if we want to make our ctests more strict. If > we make them more strict, I will bug you more about test failures :) > xmllint is probably not the best tool for (X)HTML, it just validates XML syntax (HTML is not necessarily XML, but what LyX generates is; there are many constraints that xmllint doesn't know about). There are many tools to validate HTML as command-line utilities, but most of them are in JavaScript; maybe http://www.html-tidy.org/ could be included as a test dependency? It should be more or less easy to integrate, as it's just C buildable with CMake and no dependency.
-- lyx-devel mailing list [email protected] http://lists.lyx.org/mailman/listinfo/lyx-devel
