terrylinooo/githuber-md
Composer 安装命令:
composer require terrylinooo/githuber-md
包简介
An all-in-one WordPress Markdown plugin.
README 文档
README
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 Markdowntool.
- 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_filteredand save HTML topost_content(it is what you will see in result). - View the result.
Video
Requirement
- PHP version > 5.3.0
- WordPress version > 4.0
- Tested up to 5.5.1
Download
| source | download |
|---|---|
| WordPress | https://wordpress.org/plugins/wp-githuber-md |
| GitHub repository | https://github.com/terrylinooo/githuber-md/releases |
| PHP Composer | composer create-project terrylinooo/githuber-md wp-githuber-md |
Installation
- Upload the plugin files to the
/wp-content/plugins/wp-githuber-mddirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the
Pluginsscreen in WordPress. - Go to the
WP Githuber MDmenu 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
revisionandauto-save, there are options in setting page.
Features
- All-in-one Markdown editor.
- Live preview.
- Spell check.
- Enable / disable Markdown for single post.
- Support Gutenberg editor.
- Support custom post types.
- HTML-to-Markdown helper
- Image copy & paste (support uploading to Imgur.com and sm.ms)
- Syntax highlight.
- Flow chart.
- KaTex.
- Sequence diagram.
- Mermaid.
- MathJax.
- Emoji.
- Github flavored Markdown task list.
- Markdown extra...
- Keyword suggestion tool.
Sceenshots
| thumbnail | screenshot | description | |
|---|---|---|---|
| Image copy & paste | view | Uplaoding images becomes much more eaiser, just copy and paste, then done. You can upload to your upload folder or host your images to Imgur.com. |
|
| HTML to Markdown | view | Convert your old posts into Markdown by using HTML-to-Markdown helper that beside the Editor. | |
| Syntax Highlighing | view | 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. |
|
| Mermaid | view | Mermaid is a Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs. | |
| KaTex | view | KaTex is a fast, easy-to-use JavaScript library for TeX math rendering on the web. | |
| Flow Chart | view | Draws simple SVG flow chart diagrams from textual representation of the diagram. | |
| Sequence Diagram | view | Turns Text Into Vector UML sequence diagrams. | |
| Setting Page 1 | view | Markdown settings. | |
| Setting page 2 | view | Modules settings. |
Author
Created by Terry L. and contributors. Thanks for the donators for supporting me, and the translators such as CoLocal and others for providing translation.
Notes
Development
make up
make wp.init-dev-site
Then, you can visit http://localhost:8000 to view the development site. Log in to the admin dashboard with username: admin and password: admin.
License
GPLv3 or later
terrylinooo/githuber-md 适用场景与选型建议
terrylinooo/githuber-md 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.09k 次下载、GitHub Stars 达 685, 最近一次更新时间为 2019 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「markdown」 「wordpress-plugin」 「markdown-editor」 「wordpress-markdown-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 terrylinooo/githuber-md 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 terrylinooo/githuber-md 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 terrylinooo/githuber-md 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
Adds more BBCode
A Gutenberg like color palette field for ACF.
WordPress Plugin Framework
Helper class that lets you create options settings page securely and swiftly without dealing with WordPress Settings API.
Creates a markdown changelog for your GitHub repository.
统计信息
- 总下载量: 2.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 686
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-01-03



