ghislainphu/spress-codeblock 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ghislainphu/spress-codeblock

Composer 安装命令:

composer require ghislainphu/spress-codeblock

包简介

Add codeblock Twig function to Spress.

README 文档

README

Spress 2 ready

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 &lt; and &gt; in markdown files

    This issue exists because the markdown converter runs before Twig.

    Solution: Wrap your code inside of a div tag:

    <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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固