Mytory Markdown

Description

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 ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์„ค์น˜ํ•œ ๋’ค, ํ™œ์„ฑํ™”ํ•˜๊ณ  ์•„๋ž˜ ๋น„๋””์˜ค๋ฅผ ๋ณด์„ธ์š”.

(๋น„๋””์˜ค๋Š” ์œ„์—์„œ ๋ณด์„ธ์š”.)

Features

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

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(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');

Screenshots

  • GitHub Usage 1: Create markdown file, and push it to github. So you can see it your github repository. Click it.
  • GitHub Usage 2: And click 'Raw' button on your markdown file page like below.
  • GitHub Usage 3: 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.

Installation

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

Reviews

June 18, 2020
Simple, light and useful. The best plugin that you can use whether you write in your wordpress editor, in a separate program or on github. Simple, ligero y รบtil. El mejor plugin que puedes utilizar tanto si escribes en el editor de tu instalaciรณn, en un editor de texto o en github.
February 10, 2019
I have searched a bunch for plugins for Markdown entry - this one proved to be the best, by far. Its support for multiple markdown parsers is the cherry on top.
September 3, 2016
This plugin is real awesome!!! I love markdown and git although I've a wordpress for blog. I've really concern how to use both site. This plugin is answer. I just worry about that it's too slow or can't load from dropbox. Thanks guy~!
Read all 8 reviews

Contributors & Developers

“Mytory Markdown” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Mytory Markdown” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.6.5

Added the multimarkdown engine option.

1.6.4

Disable on Gutenberg Editor, and show notice. Please rest assured. You can install Classic Editor Plugin
to use Mytory Markdown. And… I’ll support Gutenberg Editor.

1.6.3

  • ๋‹ค๋ฅธ ํ”Œ๋Ÿฌ๊ทธ์ธ์ด is_single() ํ•จ์ˆ˜๋ฅผ ๋ฌด๋ ฅํ™”ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋ฐœ์ƒํ•œ ๋“ฏํ•˜์—ฌ is_single()์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋„๋ก ์ˆ˜์ •.
  • Remove is_single() function usage. Maybe other plugin has disturbed the function’s process.

1.6.2

  • Although you don’t save after click โ€˜update editor contentโ€™ button on post edit screen, an etag is updated. It’s a bug. Fixed.
  • Remove a code line that force to replace https with http.
  • Request not to response cached version.
  • ์—๋””ํ„ฐ ๋‚ด์šฉ ๊ฐฑ์‹  ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅธ ๋’ค ์ €์žฅํ•˜์ง€ ์•Š์•„๋„, etag๋Š” ๊ฐฑ์‹ ๋œ ์ฑ„ ์ €์žฅํ•ด์„œ ๋‹ค์‹œ ๋‚ด์šฉ์ด ๊ฐฑ์‹ ๋˜์ง€ ์•Š๋Š” ๋ฒ„๊ทธ ์ˆ˜์ •.
  • ๋ฌด์กฐ๊ฑด http๋กœ ์ ‘์†ํ•˜๊ฒŒ ํ–ˆ๋˜ ์ฝ”๋“œ ์‚ญ์ œ.
  • ์„œ๋ฒ„์— ์บ์‹œ๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ๋ง๋ผ๊ณ  ์š”์ฒญ.

1.6.1

  • Now you can migrate from Public link to Dropbox API. If you have Dropbox Public link in markdown path,
    you are going to see manual alert message and go to manual page.
    (How to Migrate video)
  • Support parsedown and parsedownExtra engine. Select on settings page.
  • ์ด์ œ ๋“œ๋กญ๋ฐ•์Šค ํผ๋ธ”๋ฆญ ๋งํฌ์—์„œ ๋“œ๋กญ๋ฐ•์Šค API๋กœ ์ด์ „ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋งŒ์•ฝ ๋งˆํฌ๋‹ค์šด ๊ฒฝ๋กœ์— ๋“œ๋กญ๋ฐ•์Šค ํผ๋ธ”๋ฆญ ๋งํฌ๊ฐ€ ์žˆ์œผ๋ฉด,
    ์ด์ „ ์„ค๋ช… ์•Œ๋ฆผ๊ณผ ํŽ˜์ด์ง€๋ฅผ ๋ณด๊ฒŒ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.
    (์ด์ „ ๋ฐฉ๋ฒ• ์„ค๋ช… ๋™์˜์ƒ(ํ•œ๊ธ€ ์ž๋ง‰ ์žˆ์Œ))

1.6.0

  • Now, you can use url batch replace feature. Go to Settings > Mytory Markdown: URL Batch Replace.
  • Dropbox API feature will be provided later.
  • ์ด๋ฒˆ๋ถ€ํ„ฐ URL ์ผ๊ด„ ๋ณ€ํ™˜ ๊ธฐ๋Šฅ์„ ์ด์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์„ค์ • > Mytory Markdown: URL ์ผ๊ด„ ๋ณ€ํ™˜ ๋ฉ”๋‰ด๋กœ ๊ฐ€์„ธ์š”.
  • ๋“œ๋กญ๋ฐ•์Šค API๋ฅผ ์ด์šฉํ•œ ๊ธฐ๋Šฅ์€ ์กฐ๊ธˆ๋งŒ ๋” ๊ธฐ๋‹ค๋ ค ์ฃผ์„ธ์š”.

1.5.3

  • Apologizing. See update plan on description section. Dropbox removed Public link function from 2017-03-15. I plan to update in a week.
  • Fixed the problem that markdown conversion in text mode does not work well in some environment (for example, with UIM byeoru input method).
  • ์‚ฌ๊ณผ. ์„ค๋ช…์— ์žˆ๋Š” ์—…๋ฐ์ดํŠธ ๊ณ„ํš์„ ์ฝ์–ด ๋ณด์„ธ์š”. ์ผ์ฃผ์ผ ์•ˆ์— ๋“œ๋กญ๋ฐ•์Šค ํผ๋ธ”๋ฆญ ๋งํฌ ์ค‘๋‹จ์— ๋”ฐ๋ฅธ ์—…๋ฐ์ดํŠธ๋ฅผ ์ œ๊ณตํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.
  • ์ผ๋ถ€ ํ™˜๊ฒฝ์—์„œ(์˜ˆ๋ฅผ ๋“ค๋ฉด ๋ฆฌ๋ˆ…์Šค ๋ฒผ๋ฃจ ์ž…๋ ฅ๊ธฐ ํ™˜๊ฒฝ) ํ…์ŠคํŠธ ๋ชจ๋“œ์—์„œ ๋งˆํฌ๋‹ค์šด ๋ณ€ํ™˜์ด ์ž˜ ์•ˆ ๋˜๋Š” ํ˜„์ƒ์„ ์ˆ˜์ •.

1.5.2

From this version, only first h1 will be moved to title input. there is bug that first h1 is moved to title and rest h1 disappear.

1.5.1

Backward compatibility for array literal(remove [] array literal).

1.5.0

Added text mode. This mode only use markdown editor(plain text editor) instead of url. It provide real-time conversion.

1.4.3

Fix a bug that it not work when open_basedir is set(open_basedir์ด ์„ค์ •๋ผ ์žˆ์„ ๋•Œ warning์ด ๋œจ๋ฉด์„œ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ๋ฒ„๊ทธ ์ˆ˜์ •). Cao Quแบฃng Bรฌnh reported.

1.4.2

It can use github raw url for markdown file.

1.4.1

  1. It doesn’t show manual update button for post that don’t use mytory markdown.
  2. Added memory unlimit code against memory exhausted.

1.4.0

Feature that manual update on view page.

1.3.4

Fixed it does not work. Enabled cURL redirection. Thanks to WickedSik.

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.