Преглед на файлове

Skip junk html tags when converting to mkdown

shortcutme преди 7 години
родител
ревизия
df9dd78746
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      alloy-editor/to-markdown.js

+ 6 - 0
alloy-editor/to-markdown.js

@@ -252,6 +252,12 @@ module.exports = [
       return '\n'
     }
   },
+  {
+    filter: ["main", "article", "section", "figure", "footer", "header", "body", "figcaption"],
+    replacement: function (content) {
+      return content
+    }
+  },
   {
     filter: ['del', 's', 'strike'],
     replacement: function (content) {