WordPress.org

Plugin Directory

Mytory Markdown

This plugin get markdown file path on dropbox public link or github raw content url. It convert markdown file to html, and put it to post content.

This plugin get markdown file path on dropbox public link or github raw content url. It convert markdown file to html, and put it to post content.

Features

View intro video.

  • This plugin get markdown file path on dropbox public link or github raw content url. It convert markdown file to html, and put it to post content.
  • You can update post by editing file on your computer with dropbox sync feature. Or you can update post by push your content to github. Of course, you can edit directly from github website.
  • If post was updated once, plugin check only URL server's ETAG not full content. It is for speed. If ETAG was changed, plugin get new content and update post content. Or do nothing.
  • Plugin only pass converted html content to editor. Saving is WordPress's work. So revision history is preserved.
  • Plugin's compatibility is good. Because this plugin updates only post content html. This doesn't touch the_content process(vary plugins touch the process).
  • You can use markdown extra syntax.

Notice about Dropbox

This plugin use dropbox 'Public link'. Currently only Dropbox Pro and Business users may enable Public folders.

If you are Pro and Business user, visit this page to 'enable public folder'.

If you are not, you can use GitHub, instead.

Use GitHub for Mytory Markdown

I do not describe github usage. Find it other site.

Create markdown file, and push it to github. So you can see it your github repository. Click it.

And click 'Raw' button on your markdown file page like below.

Next, copy URL and paste it to markdown file path on 'add new post' page in your wordpress site.

Last, click 'Update Editor Content' button.

Logic

On admin page

On admin write page, put markdown url path. And click 'update editor' button. So markdown content converted to html is putted to editor.

On view page

This plugin get file url(Dropbox public link is recommended). And save header's etag to postmeta and converted html to post_content. Next time on request same post, first this plugin olny get dropbox http etag. If changed etag, get dropbox md content and save again, or get html from post_content.

This plugin divide title and content from md file

If markdown file has h1 this plugin puts first h1 string to post_title. Of course, remove the h1 from post_content so don't print title twice.

Source Code

Mytory Markdown Github

Requires: null or higher
Compatible up to: 4.2.3
Last Updated: 2015-7-29
Active Installs: 50+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

0,1,0
100,1,1
0,1,0 100,1,1
100,1,1
100,1,1
100,1,1 100,1,1