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
- Host: GitHub
- URL: https://github.com/madflow/flow-markdown
- Owner: madflow
- License: other
- Archived: true
- Created: 2011-06-20T18:18:21.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2013-02-08T10:43:39.000Z (over 13 years ago)
- Last Synced: 2024-04-16T06:56:40.475Z (about 2 years ago)
- Language: PHP
- Homepage:
- Size: 208 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](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