I'm strongly suspect it is possible to use SEDE to find broken code fences, at least for a smaller site like Ask Ubuntu, by using
STRING_SPLIT
with a newline as the separator and using
LIKE
on each resulting string. I don't know how to put that together into a query that returns one row per matched
post, though, since I don't actually know SQL.