goblindegook / wp-markdown-g
Markdown and Prism support for WordPress.
Installs: 169
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=5.3.0
- composer/installers: ~1.0
- goblindegook/delimiter-align: 0.2.*
- michelf/php-markdown: ^1.6
Requires (Dev)
- wp-coding-standards/wpcs: dev-master
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' );