ghislainphu/spress-codeblock
Composer 安装命令:
composer require ghislainphu/spress-codeblock
包简介
Add codeblock Twig function to Spress.
README 文档
README
Spress plugin to enable the Twig codeblock function from ramsey/twig-codeblock.
Getting Started
Update your composer.json to use GhislainPhu/Pygments.php instead of kzykhys/Pygments.php:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GhislainPhu/Pygments.php"
}
],
"require": {
"kzykhys/pygments": "dev-symfony-process-3 as 1.0-dev"
}
}
Run:
composer require ghislainphu/spress-codeblock
Usage
Please refer to upstream's README.md for more informations.
Known issues
-
<and>are converted to<and>in markdown filesThis issue exists because the markdown converter runs before Twig.
Solution: Wrap your code inside of a
divtag:<div> {% codeblock lang:php %} <?php echo 'Hello World!'; {% endcodeblock %} </div>
License
This project is licensed under the MIT License.
See LICENSE.md for more informations.
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-25