Debian Linux, installed with pip install --user magika.
This README.html was detected as
README.html: Generic text document (text) [Low-confidence model best-guess: Markdown document (text), score=0.554]
I'm not sure this file could get much HTML-ier, shy of adding a proper wrapper.