Selaa lähdekoodia

Skip junk html tags when converting to mkdown

shortcutme 7 vuotta sitten
vanhempi
commit
df9dd78746
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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) {