PHPackages                             sixlive/parsedown-highlight - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sixlive/parsedown-highlight

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

sixlive/parsedown-highlight
===========================

Server side code block rendering for Parsedown

v0.4.0(5y ago)232794[1 issues](https://github.com/sixlive/parsedown-highlight/issues)[19 PRs](https://github.com/sixlive/parsedown-highlight/pulls)MITPHPPHP ^7.1|7.2

Since Nov 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sixlive/parsedown-highlight)[ Packagist](https://packagist.org/packages/sixlive/parsedown-highlight)[ Docs](https://github.com/sixlive/parsedown-highlight)[ RSS](/packages/sixlive-parsedown-highlight/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (7)Versions (24)Used By (0)

Parsedown Highlight
===================

[](#parsedown-highlight)

*NOTE: This requires v1.8 of Parsedown, which has not been released yet.*
-------------------------------------------------------------------------

[](#note-this-requires-v18-of-parsedown-which-has-not-been-released-yet)

[![Packagist Version](https://camo.githubusercontent.com/d33070f1be9a3cef3559381a145c06bec4976a22692ef206e297b326b86bb6ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7369786c6976652f7061727365646f776e2d686967686c696768742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sixlive/parsedown-highlight)[![Packagist Downloads](https://camo.githubusercontent.com/d0f1c21f37a5ad07e5310272be6db36c203924fa95b937920a4de4aace04df1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7369786c6976652f7061727365646f776e2d686967686c696768742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sixlive/parsedown-highlight)[![Travis](https://camo.githubusercontent.com/b333941ef3281c32eb97fe6417eef2e474df02fe5a8ea2f93349d669bf654455/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7369786c6976652f7061727365646f776e2d686967686c696768742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sixlive/parsedown-highlight)[![Code Quality](https://camo.githubusercontent.com/5089ea24bc9e0e421feeaa4cc245fc8bd0850a845845885cdf35bd6ff302ddf3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7369786c6976652f7061727365646f776e2d686967686c696768742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sixlive/parsedown-highlight/)[![Code Coverage](https://camo.githubusercontent.com/eaa5ef2fa387d46572951d5ae3a888e00ddacb169956a09bcc293d3c757d3e1c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7369786c6976652f7061727365646f776e2d686967686c696768742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sixlive/parsedown-highlight/)[![StyleCI](https://camo.githubusercontent.com/8620245ce2dd3ce8437918d5075f374d925bae92ed0140850ead58beef08be44/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135363339383035312f736869656c64)](https://github.styleci.io/repos/156398051)

This extends Parsedown to add support for server side code block rendering. This uses [scrivo/highlight.php](https://github.com/scrivo/highlight.php) to do all the code block rendering. This will be fully compatible with Highlight JS.

Installation
------------

[](#installation)

You can install the package via composer:

```
> composer require sixlive/parsedown-highlight
```

Usage
-----

[](#usage)

```
# Hello!

Here is a post with some code in it.

\```php
