Markdown port of WP Write