定制 gubler/daux-parsedown-generator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

gubler/daux-parsedown-generator

Composer 安装命令:

composer require gubler/daux-parsedown-generator

包简介

Daux.io generator to use Parsedown instead of CommonMark

README 文档

README

This processor uses Parsedown Extra when generating a site with Daux.io

Additionally it converts specifically formatted blockquotes to callouts.

Usage

vendor/bin/daux --processor=ParsedownProcessor

Callouts

If you format the a blockquote in the following manner you can create a callout:

> #### Type::Title 
> Callout Body 
> ####

The rendered html will be formatted like this:

<div class="callout callout-type">
    <div class="callout-header">Title</div>
    <div class="callout-body">
        <p>Callout Body</p>
    </div>
</div>

Any value can be entered for Type. The Type will always be converted to the class callout-type.

Example:

> #### Alert::This is how you enter things! 
> This can contian any valid _markdown_.
>
> Just like a normal blockquote.
> ####

The rendered html will be formatted like this:

<div class="callout callout-alert">
    <div class="callout-header">Alert: This is how you enter things!</div>
    <div class="callout-body">
        <p>This can contain any valid <em>markdown</em>.</p>
        <p>Just like a normal blockquote.</p>
    </div>
</div>

If no Title is provided, the Header will just contain the Type.

Example:

> #### Warning:: 
> A warning you should be aware of.
> ####

The rendered html will be formatted like this:

<div class="callout callout-warning">
    <div class="callout-header">Warning</div>
    <div class="callout-body">
        <p>A warning you should be aware of.</p>
    </div>
</div>

Callout Styles

In the less directory you will find a basic styles. The less is modified from Bootstrap's alerts and contains styles for:

  • success (green)
  • note (blue)
  • alert (red)
  • warning (yellow)
  • default (grey) - matches all other callouts that aren't success, note, alert, or warning.

统计信息

  • 总下载量: 2.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固