Browse Source

add parsing 敘述title

weichen 3 years ago
parent
commit
608c808541
1 changed files with 4 additions and 0 deletions
  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;
 };