An open API service indexing awesome lists of open source software.

https://github.com/madflow/flow-markdown

PHP 5.3 Markdown Parser
https://github.com/madflow/flow-markdown

Last synced: 11 months ago
JSON representation

PHP 5.3 Markdown Parser

Awesome Lists containing this project

README

          

[![Build Status](https://travis-ci.org/madflow/flow-markdown.png?branch=master)](https://travis-ci.org/madflow/flow-markdown)

# What is Markdown?

> Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). Source:

# What is this \Madflow\Markdown\Parser

This script is a fork from php-markdown by Michel Fortin . The main work has been just refactoring the code for a PHP 5.3 environment.

The plugins for Wordpress etc. have been dropped from the code.

# Requirements

- PHP >= 5.3

# Installation

- Put the repository in your composer.json file and require it.
```
"repositories": [
{
"type":"git",
"url":"https://github.com/madflow/flow-markdown"
}
],

"require": {
// ....
"madflow/markdown": "dev-master"
},
```

- Execute ```composer update```
- Create instance and happily transform markdown to HTML.
```
$parser = new \Madflow\Markdown\Parser();
$html = $parser->transform('# Markdown String');
```

# Authors

- Florian Reiss

- PHP Markdown by Michel Fortin

- Markdown Syntax by John Gruber