FEATURE: Allow picture HTML element in posts

FEATURE: Allow picture HTML element in posts

diff --git a/app/assets/javascripts/pretty-text/addon/white-lister.js b/app/assets/javascripts/pretty-text/addon/white-lister.js
index 8b65c68..50d839b 100644
--- a/app/assets/javascripts/pretty-text/addon/white-lister.js
+++ b/app/assets/javascripts/pretty-text/addon/white-lister.js
@@ -178,6 +178,7 @@ export const DEFAULT_LIST = [
   "ol[start]",
   "p",
   "p[lang]",
+  "picture",
   "pre",
   "s",
   "small",
@@ -191,8 +192,9 @@ export const DEFAULT_LIST = [
   "strong",
   "sub",
   "sup",
-  "source[src]",
   "source[data-orig-src]",
+  "source[src]",
+  "source[srcset]",
   "source[type]",
   "track",
   "track[default]",

GitHub sha: 2ea17c06

1 Like