tuchsoft/commonmark-ext-heading-shifter
最新稳定版本:1.0.3
Composer 安装命令:
composer require tuchsoft/commonmark-ext-heading-shifter
包简介
A CommonMark extension to adjust (decrease) heading levels by a custom amount.
README 文档
README
CommonMark extension for shifting heading levels by a configurable amount of levels.
Install
composer require tuchsoft/commonmark-ext-heading-shifter
Usage
use League\CommonMark\CommonMarkConverter; use League\CommonMark\Environment; use TuchSoft\CommonMarkHeadingShifter\HeadingShifterExtension; $converter = new CommonMarkConverter([ 'heading_shifter' => [ 'shift_by' => 1 ] ]); $converter->getEnvironment()->addExtension(new HeadingShifterExtension()); $converter->convertToHtml("# Heading"); //<h2>Heading</h2>
Author
👤 Mattia Bonzi @ TuchSoft mattia@tuchsoft.com
- Website: tuchsoft.com
- Github: @tuchsoft
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
统计信息
- 总下载量: 186
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-17