FSNotes is modern text editor (like nvALT) on steroids.
FSNotes respect open formats: plain/text, markdown, rtf, and stores data in file system. You can view, edit, copy data in favourite external editor and see live result in FSNotes.
Markdown eidtor highlight code blocks on 170 languages, inline images available too.
Swift 4, open source.