PHPackages                             noisywinds/laravel-smartmd - 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. noisywinds/laravel-smartmd

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

noisywinds/laravel-smartmd
==========================

a laravel markdown editor

v1.0.2(7y ago)7322415[1 issues](https://github.com/NoisyWinds/laravel-smartmd/issues)MITPHPPHP &gt;=7.0.0

Since Nov 21Pushed 7y ago3 watchersCompare

[ Source](https://github.com/NoisyWinds/laravel-smartmd)[ Packagist](https://packagist.org/packages/noisywinds/laravel-smartmd)[ RSS](/packages/noisywinds-laravel-smartmd/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Laravel-smartmd
===============

[](#laravel-smartmd)

[![](https://camo.githubusercontent.com/78582c1a737bc4477eab5a8d34b7447f044b3a01eeb5a742df16040ac289f53e/68747470733a2f2f7869616f71696e6778696e2e736974652f696d616765732f64656661756c745f696d672e6a7067)](https://camo.githubusercontent.com/78582c1a737bc4477eab5a8d34b7447f044b3a01eeb5a742df16040ac289f53e/68747470733a2f2f7869616f71696e6778696e2e736974652f696d616765732f64656661756c745f696d672e6a7067)

 [Documentation](./docs/docs_EN.md) | [中文文档](./docs/docs_CN.md)

[![](https://camo.githubusercontent.com/01904aa84aa4e9d2c188496e6b74d22e94b3aae9a4d9f27b86567d80a31bf427/68747470733a2f2f7472617669732d63692e6f72672f4e6f69737957696e64732f6c61726176656c2d736d6172746d642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/NoisyWinds/laravel-smartmd)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Software License](https://camo.githubusercontent.com/86337f2c3c827900ccc5d719b5e92b50b6a9c7f1b9e7f362aaf2f8423a5a7126/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d352e342d677265656e2e737667)](https://laravel.com)[![packagist](https://camo.githubusercontent.com/14cb149b178ed580293b3829ec9d39e2c08df569326b95c7f1047f2e595e4be0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4e6f69737957696e64732f6c61726176656c2d736d6172746d642e737667)](https://packagist.org/packages/noisywinds/laravel-smartmd)

A simple markdown editor compatible most markdown parse,You can choose any parse methods on server or client,like Mathematical formula、flowchart、upload image... this program is a plugin for laravel 5.4 and php 7.1 upper.more feature develop now...

Screenshots
-----------

[](#screenshots)

editor demo: [Demo](https://xiaoqingxin.site/editor/write)
js render page [Demo](https://xiaoqingxin.site/editor/js-show)
php render page [Demo](https://xiaoqingxin.site/editor/php-show)

[![](./docs/screenshot.png)](./docs/screenshot.png)
---------------------------------------------------

[](#)

[![](./docs/screenshot_02.gif)](./docs/screenshot_02.gif)
---------------------------------------------------------

[](#-1)

[![](./docs/screenshot_03.gif)](./docs/screenshot_03.gif)

Reference:

- CodeMirror [link](https://github.com/codemirror/CodeMirror)
- Simplemde-markdown [link](https://github.com/sparksuite/simplemde-markdown-editor)
- markdown-it (markdown render) [link](https://github.com/markdown-it/markdown-it)
- mermaid (flowchart) [link](https://github.com/knsv/mermaid)
- intervention (image handling) [link](https://github.com/Intervention/image)

requirements
------------

[](#requirements)

- PHP &gt;= 7.1.0
- Laravel &gt;= 5.4.0

Installation
------------

[](#installation)

First, install package.

```
composer require noisywinds/laravel-smartmd

```

Then run these commands to publish assets and config：

```
php artisan vendor:publish --provider="NoisyWinds\Smartmd\SmartmdServiceProvider"

```

make test view router:

```
Route::group(['namespace' => 'Smartmd', 'prefix' => 'editor'], function () {
    Route::post('/upload', 'UploadController@imSave');
    Route::get('/write', function () {
        return view('vendor/smartmd/write');
    });
    Route::get('/php-show','ParseController@index');
    Route::get('/js-show',function(){
        return view('vendor/smartmd/js-show');
    });
});

```

Rewrite UploadController or config/smartmd.php to change upload path:

```
