mifka01/bb2md
Composer 安装命令:
composer require mifka01/bb2md
包简介
A class to translate text from BBcode to Markdown.
README 文档
README
A class to translate a text from BBCode to Markdown.
The BBCode to Markdown converter is able to convert: bold, italic, underline and strikethrough texts, lists, urls, images, quotes, BB2 images and even code blocks (snippets).
Composer Installation
To install bb2md, you first need to install Composer
bb2md Installation
Once you have installed Composer, it's easy install bb2md.
composer require mifka01/bb2md "dev-master"
- Run the following command in your project root dir:
composer update
Usage
BBCode to Markdown conversion:
use mifka01\bb2md\BBCodeConverter; $converter = new BBCodeConverter(); $convertedText = $converter->toMarkdown($text);
Choose language for img alts:
// available - en (default), cs $converter = new BBCodeConverter('cs');
Requirements
- PHP 7.4.0 or above.
Authors
Filippo F. Fadda - filippo.fadda@programmazione.it - http://www.linkedin.com/in/filippofadda
Radim Mifka - radimmifka@gmail.com
License
bb2md is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-08-06