Explorar o código

add parsing 敘述title

weichen %!s(int64=4) %!d(string=hai) anos
pai
achega
608c808541
Modificáronse 1 ficheiros con 4 adicións e 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;
 };