Refactor: split note conversion out of Note.
Add markdown support and more formatting