Explorar el Código

add parsing 敘述title

weichen hace 4 años
padre
commit
608c808541
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      backstage/static/js/parsers.js

+ 4 - 0
backstage/static/js/parsers.js

@@ -63,6 +63,10 @@ const parseTitle = line => {
   var title = '';
   title = line.replace('### **', '');
   title = title.replace('**', '');
+  if (title.includes('敘述')) {
+    title = title.replace('<!-- ', '');
+    title = title.replace('-->', '');
+  }
   return title;
 };