定制 rtablada/markdown 二次开发

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

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

rtablada/markdown

Composer 安装命令:

composer require rtablada/markdown

包简介

A laravel style markdown generator using static method calls

README 文档

README

A lightweight Laravel style markdown creator in PHP for composer. The code structure follows the syntax listed at http://daringfireball.net/projects/markdown/syntax

##Instalation

####Using Composer: { "require": { "Rtablada/Markdown": "0.1.*" }

##Use

All of the methods are static calls on the Rtablada\Markdown class.

Utilizes the composer autoloader.

use \Rtablada\Markdown\Markdown;

###Headings:

Simple calls will return h1 elements: Markdown::heading('Text') returns # Text

A heading level can also be called as the first argument: Markdown::heading( 2, 'Text') returns ## Text

If multiple lines are passed to the heading method, only the first line is made a heading and all other text is left as is. Markdown::heading("Text\nNew Line) returns # Text\nNew Line

###Blockquotes

Block quotes support multiple lines where: Markdown::bockquote("Text\nNew Line) returns > Text\n> New Line

###Unordered Lists

Unorderd lists can be made using an array of strings or a multiline string. It also accepts an optional marker option which allows the user to specify either an astrik or underscore (astriks are used by default).

Markdown::ul(['first', 'second'], '_') and Markdown::ul("first\nsecond"], '_') both produce: 1. first\n2. second

###Ordered List

Ordered Lists work similar to unordered lists. The optional second argument accepts the start point for the ordered list.

Markdown::ol(['first', 'second']) and Markdown::ol("first\nsecond"], '1') both produce: 1. first\n2. second

###Code Blocks

Code blocks create a tabbed in area which is translated as a multiline code block:

Markdown::codeblock("first\nsecond") produces: \tfirst\n\tsecond'

###Links

Links can be created as quick links:

Markdown::link('http:://google.com') : <http:://google.com>

Or fully functioning markup links:

Markdown::link('http:://google.com', 'Text', 'Title') : [Text](http:://google.com Title)>

###Emphasis

em can be created with the em method:

Markdown::em('text') : *text*

so can strong blocks:

Markdown::em('text', '**') : **text** Markdown::em('text', '_') : _text_

###In Line Code

In line code can be created:

Markdown::code('{{ Form::open() }}', '**') : `{{ Form::open()`

###Images

Images items will be made using: Markdown::image('http://placehold.it/350x150', 'alt') : ![alt](http://placehold.it/350x150)

rtablada/markdown 适用场景与选型建议

rtablada/markdown 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 0, 最近一次更新时间为 2013 年 01 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「markdown」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 rtablada/markdown 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 rtablada/markdown 我们能提供哪些服务?
定制开发 / 二次开发

基于 rtablada/markdown 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-30