Skip to content

Commit

Permalink
Issue #70: Add support for em, ins, pre, small, sub elements in epub
Browse files Browse the repository at this point in the history
  • Loading branch information
codedread committed Nov 19, 2023
1 parent 7e986af commit a7b4769
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions code/epub/epub-allowlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ const FULL_ALLOWLIST = {
],
[NS.epub]: [ 'type' ],
},
'em': {
[NS.html]: [
...STYLED_ATTRS,
],
[NS.epub]: [ 'type' ],
},
'head': {
[NS.html]: [
...COMMON_ATTRS,
Expand Down Expand Up @@ -161,6 +167,12 @@ const FULL_ALLOWLIST = {
],
[NS.epub]: [ 'type' ],
},
'ins': {
[NS.html]: [
...STYLED_ATTRS,
],
[NS.epub]: [ 'type' ],
},
'li': {
[NS.html]: [
...STYLED_ATTRS,
Expand Down Expand Up @@ -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,
Expand All @@ -219,6 +243,12 @@ const FULL_ALLOWLIST = {
...COMMON_ATTRS,
],
},
'sub': {
[NS.html]: [
...COMMON_ATTRS,
],
[NS.epub]: [ 'type' ],
},
'table': {
[NS.html]: [
...STYLED_ATTRS,
Expand Down

0 comments on commit a7b4769

Please sign in to comment.