Internally, notes are stored in ENML.

There's even an ENML editor.