If you are intetested in writing Markdown in WordPress, you can try this Markdown Editor plugin:
https://wordpress.org/plugins/wp-githuber-md/
Source code and detailed document:
https://github.com/terrylinooo/githuber-md
I think this information will be hopeful.