symplify/markdown-diff
最新稳定版本:10.1.0
Composer 安装命令:
composer require symplify/markdown-diff
包简介
Package to print diffs for Markdown
README 文档
README
Install
composer require symplify/markdown-diff
Add to config/config.php:
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symplify\MarkdownDiff\ValueObject\MarkdownDiffConfig; return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->import(MarkdownDiffConfig::class); };
Usage
namespace App; use Symplify\MarkdownDiff\Differ\MarkdownDiffer; final class SomeClass { /** * @var MarkdownDiffer */ private $markdownDiffer; public function __construct(MarkdownDiffer $markdownDiffer) { $this->markdownDiffer = $markdownDiffer; } public function run(): void { $markdownDiff = $this->markdownDiffer->diff('oldContent', 'newContent'); // ... } }
Report Issues
In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker
Contribute
The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.
统计信息
- 总下载量: 1.61M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-15