GithubHelp home page GithubHelp logo

richpav / mytory-markdown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mytory/mytory-markdown

0.0 1.0 0.0 544 KB

This plugin get markdown file path on dropbox public link, convert markdown to html, and put it to post content. You can use markdown extra syntax.

mytory-markdown's Introduction

Mytory Markdown

Contributors: mytory
Donate link: http://mytory.net/paypal-donation
Tags: markdown, md, dropbox
Tested up to: 3.9
Stable tag: 1.3.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Description

Features

View intro video.

[youtube http://www.youtube.com/watch?v=mCgzB1aCQgM]

  • This plugin get markdown file path on dropbox public link, convert markdown to html, and put it to post content.
  • You can update post by editing file on your computer with dropbox sync function. Of course, that's ok even if content editor is empty, when you write new post. If you have entered markdown file's URL, plugin will take care of.
  • 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 use WordPress's wp_update_post() function. 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.

Logic

You have to enable dropbox 'Public Folder'

This plugin use dropbox 'Public link'. If you register dropbox account after December 6, 2012 you don't have Public folder. Then, visit this page to 'enable public folder'.

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.

GitHub

Mytory Markdown Github

Installation

  1. Upload files to the /wp-content/plugins/mytory-markdown/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Changelog

1.3.3

  • Fixed bug 'update content' is not work for wp 3.9.
  • Enhanced legibility tag on debug mode.

1.3.2

  • Fixed auto update bug on page. (페이지에서 자동 갱신 작동하지 않는 버그 수정.)

1.3.1

  • Fixed bug that plugin don't work on default permalink type page.
  • Added 'debug message on post/page' feature. You can switch on debug message on setting page.
  • Translated to Korean.

1.3

  • Added 'auto update per x visits' feature.
  • Improved performance.
  • Show incorrect 'public link' message gracefully. Then provide 'enable public folder' link.

1.2.2

  • You can disable auto update feature for normal user. Only when admin or writer visit post, auto update feature work. You can set it in Setting > Mytory Markdown menu.
  • If URL is not dropbox public link, alert it.

1.2.1

Disabled 'markdown extra' plugin affect post content filter. This plugin was included in markdown php library file. I didn't know.

1.2

Updated error handling.

1.1

Initial version.

mytory-markdown's People

Contributors

mytory avatar

Watchers

Rich Pav avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.