diff --git a/code/epub/epub-allowlists.js b/code/epub/epub-allowlists.js index 141dfad0..487aeb57 100644 --- a/code/epub/epub-allowlists.js +++ b/code/epub/epub-allowlists.js @@ -100,6 +100,12 @@ const FULL_ALLOWLIST = { ], [NS.epub]: [ 'type' ], }, + 'em': { + [NS.html]: [ + ...STYLED_ATTRS, + ], + [NS.epub]: [ 'type' ], + }, 'head': { [NS.html]: [ ...COMMON_ATTRS, @@ -161,6 +167,12 @@ const FULL_ALLOWLIST = { ], [NS.epub]: [ 'type' ], }, + 'ins': { + [NS.html]: [ + ...STYLED_ATTRS, + ], + [NS.epub]: [ 'type' ], + }, 'li': { [NS.html]: [ ...STYLED_ATTRS, @@ -196,12 +208,24 @@ const FULL_ALLOWLIST = { ], [NS.epub]: [ 'type' ], }, + 'pre': { + [NS.html]: [ + ...STYLED_ATTRS, + ], + [NS.epub]: [ 'type' ], + }, 'section': { [NS.html]: [ ...STYLED_ATTRS, ], [NS.epub]: [ 'type' ], }, + 'small': { + [NS.html]: [ + ...STYLED_ATTRS, + ], + [NS.epub]: [ 'type' ], + }, 'span': { [NS.html]: [ ...STYLED_ATTRS, @@ -219,6 +243,12 @@ const FULL_ALLOWLIST = { ...COMMON_ATTRS, ], }, + 'sub': { + [NS.html]: [ + ...COMMON_ATTRS, + ], + [NS.epub]: [ 'type' ], + }, 'table': { [NS.html]: [ ...STYLED_ATTRS,