PHPackages                             appertly/axe-markdown - 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. appertly/axe-markdown

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

appertly/axe-markdown
=====================

Appertly XHP Extras Markdown: Markdown to XHP

0.1.0(10y ago)0991MITHack

Since May 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/appertly/axe-markdown)[ Packagist](https://packagist.org/packages/appertly/axe-markdown)[ Docs](http://github.com/appertly/axe-markdown)[ RSS](/packages/appertly-axe-markdown/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (2)Used By (1)

appertly/axe-markdown
=====================

[](#appertlyaxe-markdown)

**A** ppertly **X** HP **E** xtras Markdown: Markdown to XHP in Hack/HHVM.

[![Packagist](https://camo.githubusercontent.com/d32a9d6f1d47836a6e07615f20954f6e4b99e53fe750d160e1d849f75a20a8e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170706572746c792f6178652d6d61726b646f776e2e737667)](https://packagist.org/packages/appertly/axe-markdown)[![Build Status](https://camo.githubusercontent.com/215b2b5351c0c064737e99fc1800c6b3dbe502eda8230ee2204d0b58b35f987e/68747470733a2f2f7472617669732d63692e6f72672f6170706572746c792f6178652d6d61726b646f776e2e737667)](https://travis-ci.org/appertly/axe-markdown)

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

[](#installation)

You can install this library using Composer:

```
$ composer require appertly/axe-markdown
```

- The master branch (version 0.x) of this project requires HHVM 3.12 and depends on [XHP](https://github.com/facebook/xhp-lib) 2.2+ and [league/commonmark](https://github.com/thephpleague/commonmark).

Compliance
----------

[](#compliance)

Releases of this library will conform to [Semantic Versioning](http://semver.org).

Our code is intended to comply with [PSR-1](http://www.php-fig.org/psr/psr-1/) and [PSR-2](http://www.php-fig.org/psr/psr-2/). If you find any issues related to standards compliance, please send a pull request!

Features
--------

[](#features)

Instead of using `league/commonmark` to actually *render* the HTML, we use it to parse Markdown into an Abstract Syntax Tree, then we create real *bona fide* XHP nodes from that AST.

### Example

[](#example)

```
function getXhp(): XHPRoot
{
    $str =
