Instead of trying to do some smart (and unsecure) stuff, just display the raw note contents as is
Headings now have more weight. Also set TS strict mode