I was looking at https://github.com/mdn/kumascript/pull/771, which was a fix for a bug introduced in https://github.com/mdn/kumascript/pull/755, which broke Add-on sidebars by making the macro emit scrambled HTML.
If we could lint the HTML output of KS macros, we could make this whole class of problems less likely to happen. It would be great to do this once for all macros, but I’d be happy enough to have a test for each macro that linted the output explicitly. It seems like this would be doable if there was a package we could use in the KS test environment, but I don’t know of any.
Does this sound like a good idea? Does anyone have any good suggestions for tools we could use?