Răsfoiți Sursa

{--format=react}

visuddhinanda 2 ani în urmă
părinte
comite
31b366bef9
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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
      * @var string
      */
-    protected $signature = 'test:md.render {item?} {--format=html}';
+    protected $signature = 'test:md.render {item?} {--format=react}';
 
     /**
      * The console command description.
@@ -125,7 +125,7 @@ class TestMdRender extends Command
                 continue;
             }
             $format = $this->option('format');
-            echo MdRender::render2($value,
+            echo MdRender::render($value,
                                   ['00ae2c48-c204-4082-ae79-79ba2740d506'],
                                   null,'read','translation',
                                   $contentType="markdown",$format);