定制 evandotpro/edp-markdown 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

evandotpro/edp-markdown

最新稳定版本:0.2.0

Composer 安装命令:

composer require evandotpro/edp-markdown

包简介

A minimalist ZF2 module for adding markdown support to Zend Framework 2 projects

README 文档

README

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 config/application.config.php file. That's it!

Usage

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

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

NOTE: For security purposes, the output SHOULD be sanitized if the Markdown is from an untrusted source. (@padraic says so!) See the Markdown documentation on inline HTML to understand why this is necessary.

Configuration

TODO: Create simple way to toggle to the 'extra' parser.

License

EdpMarkdown is released under the New BSD license. See the included LICENSE file.

PHP Markdown is available under the New BSD or the GNU GPL v2.

统计信息

  • 总下载量: 9.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 33
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 33
  • Watchers: 2
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-04-16