Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

ragatol/XT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XT

XT - A small and fast Markdown style text to HTML parser.

About

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.

How to use

<?php

include "xt.php";

XT\parse(new SplFileObject("file"));

About

XT - A small and fast Markdown style parser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages