epub converter: add style_config

This commit is contained in:
shirshasa
2021-09-07 16:09:29 +03:00
parent 80490cbea6
commit e6b341bac9

70
doc/style_config Normal file
View File

@@ -0,0 +1,70 @@
config.allowedContent = {
sup: {
attributes: ['*'],
classes: ['*']
},
table: {
attributes: ['*'],
styles: ['*']
},
tr: {
attributes: ['*'],
styles: ['*']
},
th: {
attributes: ['*'],
classes: ['p-indent'],
styles: ['*']
},
td: {
attributes: ['*'],
classes: ['p-indent'],
styles: ['*']
},
tbody: {
attributes: ['*'],
styles: ['*']
},
thead: {
attributes: ['*'],
styles: ['*']
},
caption : {},
img : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
p : {
styles: ['text-align', 'text-indent'],
classes: ['*']
},
strong : {},
i : {},
s : {},
u : {},
ul : {},
ol : {},
li : {
styles: ['text-align']
},
blockquote : {},
span : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
a : {
attributes: ['href', 'data-anchor-id', 'data-chapter-id', 'placeholder'],
classes: ['link-to-anchor'],
},
iframe : {
attributes: ['*'],
classes: ['*'],
styles: ['*']
},
div : {
attributes: ['*'],
classes: ['youtube-embed-wrapper'],
styles: ['*']
} };