PHPackages                             kaoken/laravel-markdown-it - 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. kaoken/laravel-markdown-it

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

kaoken/laravel-markdown-it
==========================

A thing for using PHP version markdown-it in Laravel 6.x.

2.6.0(6y ago)284MITPHPPHP &gt;=7.3.6

Since Jul 15Pushed 6y agoCompare

[ Source](https://github.com/kaoken/laravel-markdown-it)[ Packagist](https://packagist.org/packages/kaoken/laravel-markdown-it)[ RSS](/packages/kaoken-laravel-markdown-it/feed)WikiDiscussions master Synced 3d ago

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

laravel-markdown-it
===================

[](#laravel-markdown-it)

[![Build Status](https://camo.githubusercontent.com/0b7ce1de726357abe2c154876ba6e76d6debfe4d28d5f4ea8f94a6b9e10ce1c8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d61726b646f776e2d69742f6d61726b646f776e2d69742f6d61737465722e7376673f7374796c653d666c6174)](https://github.com/kaoken/laravel-markdown-it)[![composer version](https://camo.githubusercontent.com/1591c656cf87daf0d602bb428d43eefb0321ecaf501113c7b2ed08cce15363bd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d322e362e302d626c75652e737667)](https://github.com/kaoken/laravel-markdown-it)[![licence](https://camo.githubusercontent.com/84ba0b50ad44e854f0382b3a99afaef96f3d4db9e861686a3297ccd3bd397de7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e63652d4d49542d626c75652e737667)](https://github.com/kaoken/laravel-markdown-it)[![PHP version](https://camo.githubusercontent.com/f400997e8e83b8cd2c5055bbee1da4eeb8d679037b7ab73b574aa2853256fff6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d254532253839254137372e332e342d7265642e737667)](https://github.com/kaoken/laravel-markdown-it)[![Laravel version](https://camo.githubusercontent.com/42e860dd0860b9787ba60a74deab2ad765b23a44072072ffb2675a7d91d96f40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d254532253839254137362e302d7265642e737667)](https://github.com/kaoken/laravel-markdown-it)

This target Laravel 6.0 and higher, making [PHP version markdown-it](https://github.com/kaoken/markdown-it-php) easy to use with Laravel.

**Table of content**

- [Install](#install)
- [Setting](#setting)
- [Syntax extensions](#syntax-extensions)
- [References / Thanks](#references--thanks)
- [License](#license)

Install
-------

[](#install)

**composer**:

Add to `composer.json` as follows

```
"require": {
    ...
	"kaoken/laravel-markdown-it":"^2.0"
}
```

Then update!

```
composer update
```

Setting
-------

[](#setting)

#### Add to **`config\app.php` as follows：**

[](#add-to-configappphp-as-follows)

```
    'providers' => [
        ...
        Kaoken\LaravelMarkdownIt\MarkdownItServiceProvider::class,
    ],

    'aliases' => [
        ...
        'MarkdownIt' => Kaoken\LaravelMarkdownIt\Facade\MarkdownIt::class,
    ],
```

### artisan command

[](#artisan-command)

```
php artisan vendor:publish
```

By executing the above command, `markdownit.php` is created in the`config` directory.

### Options and rules configuration file

[](#options-and-rules-configuration-file)

All options and rules are enabled by default. This is equivalent to `hoge ['options_rules_group'] ['default']` in `config \ markdownit.php` below.
For a description of the options (`"options "`) and rules (`"enable "`, `"disable "`), see the comments for each parameter of `hoge ['options_rules_group'] ['default']` .
If you want to add new options and rules, rewrite the contents of `'example'`by removing the comments below`Add options and rules` in the comments below.

```
