Mytory Markdown

The plugin get markdown file URL like github raw content url. The plugin 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. Text mode don’t use url.

? ????? ???? ??? URL? ??? html? ???? ?? ??? ???? ??????.
???? ?? ?? URL ?? ?? ??? ? ????.

??? ?? ????? ???? ???? ???? ??? ?????. ???? ???? html? ??? ???? ?????.
??? ??? ???? ?? URL? ???? ????.

See intro video.

Now you can migrate from Public link to Dropbox API

I made up Mytory Markdown for Dropbox plugin. The plugin access Dropbox using API. So I divide the plugin to Mytory Markdown for Dropbox.
Now you can install it in plugin page. This video describe how to migrate Public link to Dropbox API.

Install Mytory Markdown for Dropbox and activate it. Then see a video below.

[Youtube https://www.youtube.com/watch?v=ZmPWMBvGuS4]

If the video doesn’t be show, click this to go to how to migration video.

?? Public ??? ???? API? ??? ? ????

Mytory Markdown for Dropbox ????? ??????. API? ???? ????? ???? ???????. ??? ??????.
?? ???? ????? ??? ??? ? ????. ?? ???? ??? ??? ???? API? ???? ??? ?????.

Mytory Markdown for Dropbox ????? ??? ?, ????? ?? ???? ???.

(???? ??? ???.)

产品特点

  • This plugin get markdown file url like 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. e.g. 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.
  • The plugin only pass converted html content to editor. Saving is WordPress’s work. So revision history is preserved.
  • The plugin is compatible with other plugins. Because the 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.

逻辑

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(Github raw content url 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 http etag.
If changed etag, get 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

You can use Multimarkdown 6

You can use the Muitimarkdown if you install it on your server. ((Website)[https://fletcher.github.io/MultiMarkdown-6/])

  1. Multimarkdown option will be enabled if a multimarkdown execution is on OS PATH and web server can run it.

  2. Otherwise, you can define MYTORY_MARKDOWN_MULTIMARKDOWN_EXECUTION constant on wp-config.php.
    ex) define('MYTORY_MARKDOWN_MULTIMARKDOWN_EXECUTION', '/opt/multimarkdown/bin/multimarkdown');

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录