PHP code example of steperlin / flarum-markdown

1. Go to this page and download the library: Download steperlin/flarum-markdown library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

steperlin / flarum-markdown example snippets


   // config.php
   'debug' => true,
   
bash
# 清除缓存(必须)
php flarum cache:clear

# 运行数据库迁移(如有需要)
php flarum migrate

# 重建前端资源
php flarum assets:publish
bash
# 1. 备份论坛数据(重要!)
php flarum backup

# 2. 移除官方扩展
composer remove flarum/markdown

# 3. 安装本扩展
composer 
bash
# A: 清除 Flarum 缓存
php flarum cache:clear
# 检查扩展是否启用
php flarum extension:list
bash
# A: 重建前端资源
php flarum assets:publish
# 检查浏览器控制台错误
F12 -> Console