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? ???? ????.
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
You can use Multimarkdown 6
You can use the Muitimarkdown if you install it on your server. ((Website)[https://fletcher.github.io/MultiMarkdown-6/])
-
Multimarkdown option will be enabled if a multimarkdown execution is on OS PATH and web server can run it.
-
Otherwise, you can define
MYTORY_MARKDOWN_MULTIMARKDOWN_EXECUTION
constant onwp-config.php
.
ex)define('MYTORY_MARKDOWN_MULTIMARKDOWN_EXECUTION', '/opt/multimarkdown/bin/multimarkdown');
Screenshots
Installation
- Upload files to the
/wp-content/plugins/mytory-markdown/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Reviews
Contributors & Developers
“Mytory Markdown” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “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
- It doesn’t show manual update button for post that don’t use mytory markdown.
- 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.