ntzwbr / phile-bootstrap
在Phile中使用扩展的cebe/markdown解析器。
dev-master
2015-01-14 08:53 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-24 03:02:54 UTC
README
由https://github.com/dreikanter/markdown-grid启发的cebe/markdown的新风味,可作为Phile中的插件使用。
1.1 安装(composer)
php composer.phar require ntzwbr/phile-bootstrap:dev-master
1.2 安装(下载)
- 安装Phile的最新版本
- 将此存储库克隆或下载到
plugins/ntzwbr/phileBootstrap
2. 激活
安装插件后,您需要将以下行添加到您的config.php
文件中
$config['plugins'] = array( 'phile\\parserMarkdown' => array('active' => false), // disable the default parser 'ntzwbr\\phileBootstrap' => array('active' => true) // use parsedown );
3. 使用
Markdown语法扩展非常简单。以下页面源代码示例定义了一个三列页面片段
-- row 5, 2, 5 -- First column contains couple of paragraphs. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. --- Some images in the middle column:   --- And some **more** text in the _third_ column. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. [Excepteur](http://excepteur.org ) sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -- end --
在row
指令之后逗号分隔的数字列表是可选的列宽定义。此示例使用12列Twitter Bootstrap网格,因此"5, 2, 5"对应于相对于整个页面宽度的"41.5%,17%,41.5%"。