$lexer->rule('/\d+/', function(Token $token) echo "Number: $token->getValue()\n"; );

: The mpratt/Luthor repository provides an extendable markdown parser that converts text into HTML line-by-line. It is highly customizable, allowing users to build their own "flavored" markdown notations.

$lexer->rule('/[a-z]+/', function(Token $token) echo "Word: $token->getValue()\n"; );

Facebook YouTube LinkedIn Contact Us