Emacs lets you add buttons to your document

Of course it does.
Nice lightweight example of the difference between a document’s definition on the storage media (file-system) and its presentation to the user. Not to lean too hard on this, but if you grok what is happening here then you will enjoy Emacs a lot more.
Via here.