Fix issue where deprecated syntax for HTML lists was not handled properly (#1488768)