terrylinooo/githuber-md
About
Markdown editor plugin for WordPress.
Productivity & AutomationMeasured star growth
- in 24h
- +1
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalGithuber MD: Markdown editor for WordPress
English · 繁體中文 · 简体中文 · 日本語 · 한국어 · Français · Deutsch · Español · Português · Italiano · Русский · Türkçe · Tiếng Việt · Bahasa Indonesia · العربية

Githuber MD lets you write WordPress posts and pages in Markdown. It replaces the classic editor's text box with a Markdown editor (CodeMirror 6) and a live preview. On your site it adds code highlighting, math, diagrams, emoji and a table of contents.
Every library ships with the plugin. Neither the editor nor your site loads anything from another server.
How it works
- Your Markdown is saved in
wp_posts.post_content_filtered. - When you save, the Markdown is converted to HTML and saved in
wp_posts.post_content. That HTML is what visitors, feeds and other plugins see. - On your site, one small script checks each page and loads only the libraries it needs. A post saved before you turned a feature on gets that feature too, without being saved again.
Requirements
- WordPress 6.7 or later (tested up to 7.1)
- PHP 7.4 or later
Download
| Source | Download |
|---|---|
| WordPress.org | https://wordpress.org/plugins/wp-githuber-md |
| GitHub releases | https://github.com/terrylinooo/githuber-md/releases |
Installation
- Install the plugin from the Plugins screen, or upload the
wp-githuber-mdfolder to/wp-content/plugins/. - Activate it on the Plugins screen.
- Go to Githuber MD > Dashboard to turn features on, and to Githuber MD > Settings to adjust them.
Features
Markdown editor with live preview

- Toolbar and keyboard shortcuts.
- Three modes: edit only, split, or preview only.
- Fullscreen, line numbers, and a light or dark theme.
- The server renders the preview the same way it renders a saved post, so you see highlighted code, math and diagrams exactly as they will appear.
- Toolbar buttons for "Read more" (
<!--more-->) and "Page break" (<!--nextpage-->).
Paste or drop images

Paste or drop an image into the editor to upload it. It can go to:
- the media library;
- the uploads folder;
- Imgur, sm.ms or Chevereto.
The Markdown for the image is inserted where you pasted.
HTML to Markdown

A post written in HTML shows a "Convert to Markdown" notice. The "HTML to Markdown" box beside the editor converts whatever text is in the editor.
On your site
Each picture is the whole browser window; click it to see it full size.
Dashboard and settings

The Githuber MD menu has a Dashboard with one card per feature: turn it on or off, see what it affects, and open its settings. The Settings page has tabs.

More
- Markdown Extra, HTML5 figures with captions, and keyboard-key style for inline code.
- Turn Markdown on or off for a single post. Works with the block editor and custom post types.
- Optionally download remote images into your uploads folder when you save.
- Yoast SEO readability analysis of the Markdown.
- Every editor tool runs on a REST API (
githuber-md/v1) that checks the user's capabilities. - Translations: Traditional Chinese (zh_TW) and Simplified Chinese (zh_CN).
Upgrading from 1.x
Version 2.0.0 is a rewrite of the whole plugin. Posts are not changed by the upgrade. What a 1.x user will notice:
- Requirements: WordPress 6.7 and PHP 7.4 or later.
- Editor: CodeMirror 6 replaces Editor.md. The spell-check dictionaries, the keyword suggestion tool and the Editor.md themes are gone.
- No CDN: Every library ships with the plugin. Nothing is loaded from another site.
- Settings: A new Githuber MD menu with a Dashboard and a Settings page. Your saved options are kept.
- Security: Content is filtered more strictly. A link written in Markdown keeps only the URL schemes WordPress allows, and a post whose author cannot post unfiltered HTML is always filtered.
The full list of changes is in the changelog.
FAQ
What does uninstalling remove? Only with "Clear all Settings" turned on (General tab) are the plugin's options and post meta deleted. Post content, including the Markdown, is never deleted. On a multisite network, uninstalling cleans the site it runs on only; the other sites keep their options and post meta.
I switched a post to the rich editor. What happens to its Markdown? When you save the post from the rich editor, its HTML replaces the Markdown source. The revisions saved before still hold the Markdown and can be restored.
Author
Development
Only Docker and Make are needed on the host; PHP, Composer and Node run in containers.
make setup # build images, start containers, install dependencies and WordPress
Visit http://localhost:8000 and log in with admin / admin. Set WP_PORT=8080 to use another port. Run make help for every target.
| Command | What it does |
|---|---|
make assets |
Build the front end into build/ with Vite (make assets.watch rebuilds on change) |
make lint |
WordPress Coding Standards (PHPCS with WPCS and PHPCompatibilityWP for PHP 7.4+) and ESLint (@wordpress/eslint-plugin) |
make test.php |
PHPUnit: golden snapshots and integration tests |
make test.js |
Vitest unit tests (builds first) |
make test.e2e |
Playwright end-to-end tests: everything on the block theme, then the front-end specs on the classic fixture theme tests/e2e/fixtures/themes/githuber-classic |
make dist |
Build dist/wp-githuber-md-<version>.zip (the release workflow uses the same script) and check its contents |
License
GPLv3 or later
Explore related projects
Loading…






