matt-bartlett/markdown 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

matt-bartlett/markdown

最新稳定版本:0.1.3

Composer 安装命令:

composer require matt-bartlett/markdown

包简介

Markdown compiler for Laravel 5

README 文档

README

A simple wrapper around Michelfs PHP Markdown parser. This was developed for my own use of constructing valid Markdown from a given string. I will look to extend this package at some point.

Installing

Begin by installing this package through Composer. Edit your project's composer.json file to require matt-bartlett/markdown:

"require": {
    "matt-bartlett/markdown": "0.1.2"
}

Next, update Composer from the Terminal:

composer update

Add this service provider to your config. Open config/app.php and insert the following line into your providers array:

MattBartlett\Markdown\MarkdownServiceProvider::class

Make use of the facade and add this to your aliases array:

'Markdown'  => MattBartlett\Markdown\Facades\Markdown::class

All done.

Usage

You can either inject the Markdown class into a method or call it directly from a view. For example:

Markdown::string('````$var = "Hello World";```')

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-05