Browse Source

Skip junk html tags when converting to mkdown

shortcutme 7 years ago
parent
commit
df9dd78746
1 changed files with 6 additions and 0 deletions
  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) {