An all-in-on WordPress Markdown Plugin provides a variety of features such as Markdown editor, live-preview, image-paste, HTML-to-Markdown helper, and more..
How it works
WP Githuber MD will save your Markdown content into wp_posts.post_content_filtered.
Parse the Markdown to HTML, save the parsed HTML content into wp_posts.post_content.
This plugin will detect your Markdown content and decide what scripts will be loaded, to avoid loading unnecessary scripts.
For example, if you enabled syntax highlight, you have to update your post again to take effects.
Demo
GIF animation
The demo shows you the following steps:
Convert HTML to Markdown by using HTML to Markdown tool.
Cut up a selection area of an image and copy it from Photoshop, then paste it to Markdown Editor.
Click "Update" button to save Markdown to post_content_filtered and save HTML to post_content (it is what you will see in result).
Upload the plugin files to the /wp-content/plugins/wp-githuber-md directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the Plugins screen in WordPress.
Go to the WP Githuber MD menu in Plugins and set your Markdown options.
Suggestions
The better situation to use this plugin is you just started a new blog.
If you're planning to use this plugin in an existing blog, be sure to:
Turn off other Markdown plugins, because the similar plugins might do the same things when submitting your posts, may have some syntax conversion issues between Markdown and HTML.
My personal suggestion is to turn off revision and auto-save, there are options in setting page.
Use Google prettify.js for the Editor's live-preview pane, and use prism.js for the fontend pages. You can choose your favorite theme for syntax hgihlighing.
请发表评论