on content save, html is parsed and links are serialized to Post.links
field.

clicking uploaded file link puts img link ![]() if file's mimetype is
image.