XT - A small and fast Markdown style text to HTML parser.
XT is a library to convert Markdown style text to HTML code.
It's able to understand headings, paragraphs, quotes, ordered and unordered lists, inline HTML and code fragments. Tables are planned for future support.
Since it's designed to be a single-pass, line-by-line, top-down parser, there's some differences on how it implements some complex structures:
- List itens with multiple lines must be indented with the item first line, eg;
- Item - Multiple Line Item - Other Item
- References are not supported (right now).
- Very limited use of inline HTML; Use block-level HTML instead.
<?php
include "xt.php";
XT\parse(new SplFileObject("file"));