goblindegook/wp-markdown-g
最新稳定版本:1.3.1
Composer 安装命令:
composer require goblindegook/wp-markdown-g
包简介
Markdown and Prism support for WordPress.
README 文档
README
A plugin that adds Markdown support and code syntax highlighting to WordPress.
I developed this for personal use, and I offer it as-is, with no intention to please any crowds. There are many Markdown plugins in the repository and I encourage you to try those first, I only created this because none of them gave me exactly what I needed.
This plugin uses PHP Markdown to render Markdown, with Prism.js for syntax highlighting.
Installation
This plugin is not available in the repository, Composer is the recommended way to install it:
$ composer require goblindegook/wp-markdown-g
If you want to know more about using Composer with WordPress, there's a good introduction at the Roots project site.
Syntax Highlighting
The plugin is bundled with Prism.js to highlight code in the following languages:
- Bash
- C/C++
- CoffeeScript
- CSS
- Git
- Handlebars
- HTML
- HTTP
- INI
- Java
- JavaScript (and JSX)
- LESS
- Makefile
- Markdown
- Objective-C
- Perl
- PHP
- Python
- Ruby
- Scala
- SCSS
- SQL
- Swift
- Twig
- TypeScript
- YAML
Overriding the colour scheme
The plugin uses Paul Livingstone's Okaidia theme by default. If you need to override Okaidia on your theme (or in some other plugin), I recommend you dequeue ours first:
wp_dequeue_style( 'wp-markdown-prism' );
统计信息
- 总下载量: 170
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-07-04