天云易/parse-hexo

此包最新版本(1.0)没有可用的许可证信息。

1.0 2017-11-19 14:07 UTC

This package is auto-updated.

Last update: 2024-09-18 06:21:39 UTC


README

依赖erusev/parsedownyaml

composer install

测试实例

$file = "./crontab.md";
$parse = new \XianYun\ParseHexo($file);
$header = $parse->getHeader();//markdown header中yaml数据
$content = $parse->getContent();//正文内容
$Parsedown = new \Parsedown();// 利用parsemarkdown 解析正文
$content = $Parsedown->text($content);