cradeq/commonmark-br-extension
最新稳定版本:v1.0.0
Composer 安装命令:
composer require cradeq/commonmark-br-extension
包简介
Allows HTML break tags to be used in Markdown, while still escaping or stripping all other HTML input.
README 文档
README
This package allows HTML break tags (<br>, <br/>, <br />) to be used in Markdown, while still escaping or stripping all other HTML input.
Install
This project can be installed via composer:
composer require cradeq/commonmark-br-extension
Usage
use Cradeq\CommonMark\BreakTagExtension; use League\CommonMark\Environment\Environment; use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension; $environment = new Environment(); $environment->addExtension(new CommonMarkCoreExtension); $environment->addExtension(new BreakTagExtension);
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-15