PHPackages                             nomandia/imarkdown - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. nomandia/imarkdown

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

nomandia/imarkdown
==================

Simply markdown toolkit

1.0(7y ago)02MITPHPPHP ^7.1.0

Since Aug 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nomandia/imarkdown)[ Packagist](https://packagist.org/packages/nomandia/imarkdown)[ RSS](/packages/nomandia-imarkdown/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (2)Used By (0)

imarkdown
=========

[](#imarkdown)

Simply markdown toolkit

> 这个项目参考了 broqiang/laravel-markdown

依赖组件
----

[](#依赖组件)

- [Laravel](https://laravel.com/) 框架
- [editor.md](http://pandao.github.io/editor.md/) Markdown 富文本编辑器
- [github-markdown-css](https://github.com/sindresorhus/github-markdown-css) 样式是通过此 css 修改的
- [highlight.js](https://github.com/isagalaev/highlight.js) 预览代码高亮，是通过这个实现的
- prettify.js 代码框添加编号，直接使用的是 `editor.md/lib` 中的
- [erusev/parsedown](https://github.com/erusev/parsedown) 用来将 markdown 转换成 html
- [mews/purifier](https://github.com/mewebstudio/Purifier) markdown 转换 html 的时候进行过滤，方式 XSS 攻击
- [league/html-to-markdown](https://github.com/thephpleague/html-to-markdown) 用来将 html 转换成 markdown

安装组件
----

[](#安装组件)

```
composer require nomandia/imarkdown
```

#### 发布配置文件

[](#发布配置文件)

这里面有一些默认的配置，如下，如果需要自定义配置执行此部，如果不需要可以不用发布配置文件

```
php artisan vendor:publish --provider="Nomandia\IMarkdown\IMarkdownProvider" --tag="config"
```

配置文件详情，可以根据实际需求去配置

```
