visuddhinanda 2 лет назад
Родитель
Сommit
31b366bef9
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/Console/Commands/TestMdRender.php

+ 2 - 2
app/Console/Commands/TestMdRender.php

@@ -13,7 +13,7 @@ class TestMdRender extends Command
      * run php artisan test:md.render term unity
      * run php artisan test:md.render term unity
      * @var string
      * @var string
      */
      */
-    protected $signature = 'test:md.render {item?} {--format=html}';
+    protected $signature = 'test:md.render {item?} {--format=react}';
 
 
     /**
     /**
      * The console command description.
      * The console command description.
@@ -125,7 +125,7 @@ class TestMdRender extends Command
                 continue;
                 continue;
             }
             }
             $format = $this->option('format');
             $format = $this->option('format');
-            echo MdRender::render2($value,
+            echo MdRender::render($value,
                                   ['00ae2c48-c204-4082-ae79-79ba2740d506'],
                                   ['00ae2c48-c204-4082-ae79-79ba2740d506'],
                                   null,'read','translation',
                                   null,'read','translation',
                                   $contentType="markdown",$format);
                                   $contentType="markdown",$format);