瀏覽代碼

Merge pull request #1694 from visuddhinanda/laravel

修正未封闭的<h
visuddhinanda 2 年之前
父節點
當前提交
ddec685b42
共有 2 個文件被更改,包括 7 次插入2 次删除
  1. 2 2
      app/Console/Commands/ExportChapter.php
  2. 5 0
      resources/mustache/html/main.html

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

@@ -23,7 +23,7 @@ class ExportChapter extends Command
     protected $realFilename = null;
     protected $realFilename = null;
     /**
     /**
      * The name and signature of the console command.
      * The name and signature of the console command.
-     * php artisan export:chapter 213 1913 a19eaf75-c63f-4b84-8125-1bce18311e23 213-1913 --format=html
+     * php artisan export:chapter 213 3 a19eaf75-c63f-4b84-8125-1bce18311e23 213-3.html --format=html --origin=true
      * php artisan export:chapter 168 915 19f53a65-81db-4b7d-8144-ac33f1217d34 168-915.html --format=html
      * php artisan export:chapter 168 915 19f53a65-81db-4b7d-8144-ac33f1217d34 168-915.html --format=html
      * php artisan export:chapter 168 915 19f53a65-81db-4b7d-8144-ac33f1217d34 168-915.html --format=html --origin=true
      * php artisan export:chapter 168 915 19f53a65-81db-4b7d-8144-ac33f1217d34 168-915.html --format=html --origin=true
      * @var string
      * @var string
@@ -280,7 +280,7 @@ class ExportChapter extends Command
                             break;
                             break;
                         case 'html':
                         case 'html':
                             $level = $currLevel+2;
                             $level = $currLevel+2;
-                            $content[] = "<h{$currLevel}".$subSessionTitle."</h{$currLevel}";
+                            $content[] = "<h{$currLevel}>".$subSessionTitle."</h{$currLevel}>";
                             break;
                             break;
                     }
                     }
                 }
                 }

+ 5 - 0
resources/mustache/html/main.html

@@ -26,6 +26,11 @@
         .col {
         .col {
             flex: 5;
             flex: 5;
         }
         }
+        code {
+            background-color: #ffe4c478;
+            padding: 2px 6px;
+            border-radius: 4px;
+        }
     </style>
     </style>
 </head>
 </head>
 <body>
 <body>