A simple ZF2 module for adding markdown support to Zend Framework 2 projects
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead, 23 commits behind EvanDotPro:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
src
.gitmodules
Module.php
README.md
autoload_classmap.php
autoload_function.php
autoload_register.php

README.md

EdpMarkdown - ZF2 Markdown Module

Version 0.0.1 Created by Evan Coury

Introduction

This ZF2 module simply adds markdown support to your project. It utilizes the PHP Markdown library written by Michel Fortin which is a PHP port of the original perl implementation by John Gruber.

Installation

To install EdpMarkdown, simply recursively clone this repository (git clone --recursive) into your ZF2 modules directory and enable it in your configs/application.config.php file. That's it!

Usage

With this module installed, using markdown in your view scripts is easy:

<?php $this->markdown()->start(); ?>
Hello, **this** is _markdown_!
<?php $this->markdown()->end(); ?>

or...

<?= $this->markdown('Hello, **this** is _markdown_!'); ?>

Configuration

By default, this module uses the "Markdown Extra" parser. If you'd like to switch it to just use the normal markdown parser, you can add the following DI alias to your config:

'markdown-parser' => 'Markdown_Parser'