Răsfoiți Sursa

课程附件支持模版

visuddhinanda 4 ani în urmă
părinte
comite
bc3f452e3e
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      app/course/lesson.js

+ 2 - 1
app/course/lesson.js

@@ -39,7 +39,7 @@ function lesson_show(id) {
                 html += '<div class="summary"  style="padding-bottom:5px;">' + replay + "</div>";
                 let attachment = "";
                 try {
-                    attachment = marked(lesson["attachment"], { renderer: renderer });
+                    attachment = note_init(lesson["attachment"]);
                 } catch {}
                 html += '<div class="summary"  style="padding-bottom:5px;">' + attachment + "</div>";
                 html += "</div>";
@@ -80,6 +80,7 @@ function lesson_show(id) {
                 html += "</div>";
             }
             $("#lesson_list").html(html);
+			note_refresh_new();
             mermaid.initialize();
         }
     );