Skip to content

wskplho/flow-markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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: http://daringfireball.net/projects/markdown/

What is this \Madflow\Markdown\Parser

This script is a fork from php-markdown by Michel Fortin http://michelf.com/. 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

About

PHP 5.3 Markdown Parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.4%
  • HTML 7.6%