+
Skip to content

kamermans/markdown-oo-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice

The library is under active development. API may change without notice.

What is Markdown?

Markdown is a text-to-HTML conversion tool for web writers. It is intended to be as easy-to-read and easy-to-write as is feasible.

Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.

See official website for syntax.

What is markdown-oo-php?

It's an object-oriented, PSR compatible PHP library capable of converting markdown text to XHTML.

Quick start

set_include_path(get_include_path() . PATH_SEPARATOR . realpath('src'));

require_once 'SplClassLoader.php';
$l = new SplClassLoader('MaxTsepkov');
$l->register();

use MaxTsepkov\Markdown\Text;

echo new Text($markdown);

Requirements

  • PHP >= 5.3

Contribution

  1. Fork me
  2. Mail me

About

Markdown implementaion for PHP (object-oriented)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 89.3%
  • HTML 10.7%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载