WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

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. It

2017-03-20 Notice:

Now, you can use URL batch replace feature. You can replace root url with new one easily using this feature. If you've been user of Dropbox public link, replace dropbox's root url with new site url. e.g. raw.githubusercontent.com

Thank you.

이제 URL 일괄 변환 기능을 사용할 수 있습니다. 이 기능을 이용해서 루트 URL을 새로운 URL로 손쉽게 변경할 수 있습니다. 만약 드롭박스 퍼블릭 링크 사용자였다면, 드롭박스의 루트 URL을 raw.githubusercontent.com 같은 새 사이트 URL로 바꾸세요.

감사합니다.

2017-03-15 Notice:

(If you are Korean user, see below of english. 한국어 사용자라면 영문 아래쪽의 한글 알림을 보세요.)

Dropbox disabled Public link to basic users from 2017-03-15.

I've promised to update. But I could not meet the deadline. I'm sorry. I was crazy busy from the end of last October. Now I have some time to spare. So I will update the plugin in a week.

I will solve the problem of public link removal in two ways.

  1. Batch change function of the path of the Markdown file: You can change root path of files. e.g. https://dl.dropboxusercontent.com/u/15546257/blog/markdown/my-post.md to https://raw.githubusercontent.com/mytory/mytory-markdown/master/blog/markdown/my-post.md You can migrate files to github or etc using this feature.

  2. Dropbox API to reconnect files with batch change function of the path of the Markdown files.

I will be updating in a week (3/22).

I apologize again for not keeping my promise.

알림:

3월 15일부터 드롭박스는 무료 사용자들에게 퍼블릭 링크 기능을 더이상 제공하지 않습니다.

그 전에 업데이트할 것이라고 약속을 드린 바 있는데, 기한을 지키지 못했습니다. 매우 죄송합니다. 작년 10월 말부터 미친듯이 바빠서 도무지 여유를 낼 수가 없었습니다. 다행히 이제 여유가 좀 생겼습니다. 일주일 안에 업데이트를 제공하려고 합니다.

두 가지 방법으로 문제를 해결하려고 합니다.

  1. 마크다운 파일 경로를 한꺼번에 업데이트하는 기능: 파일의 루트 경로를 변경할 수 있습니다. 예를 들면, https://dl.dropboxusercontent.com/u/15546257/blog/markdown/my-post.mdhttps://raw.githubusercontent.com/mytory/mytory-markdown/master/blog/markdown/my-post.md로 바꾸는 식입니다. 이 기능을 이용하면 기트허브 등으로 파일을 옮길 수 있을 것입니다.

  2. 드롭박스 API를 이용해서 기존의 마크다운 파일을 새로 연결하는 방법입니다. 역시 한꺼번에 연결할 수 있는 기능을 제공할 것입니다.

일주일 안에(3월 22일까지) 업데이트하도록 하겠습니다.

기한을 맞추지 점, 다시 한 번 사과드립니다.

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.

It also provide text mode that write markdown in post edit page. Markdown text converted to html is put to editor by real-time. Text mode don't use url.

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.
  • It provide markdown editor that can use in post editing page instead of url.

Notice about Dropbox

This plugin use dropbox 'Public link' not 'Share link'. Currently only Dropbox Pro and Business users may enable Public folders. Below is a example.

  • (Public link)[https://dl.dropboxusercontent.com/u/15546257/test.md]
  • (Share link)[https://www.dropbox.com/s/rgin3gbpa5y0505/test.md?dl=0]

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

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

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. See screenshot 1.

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.7.3
Last Updated: 4 days ago
Active Installs: 100+

Ratings

5 out of 5 stars

Support

1 of 2 support threads in the last two months have been marked resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say 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
100,1,1