You've already forked AstralRinth
forked from didirus/AstralRinth
Fix markdown styling (#1176)
This commit is contained in:
@@ -14,14 +14,17 @@ export const configuredXss = new xss.FilterXSS({
|
|||||||
kbd: ['id'],
|
kbd: ['id'],
|
||||||
input: ['checked', 'disabled', 'type'],
|
input: ['checked', 'disabled', 'type'],
|
||||||
iframe: ['width', 'height', 'allowfullscreen', 'frameborder', 'start', 'end'],
|
iframe: ['width', 'height', 'allowfullscreen', 'frameborder', 'start', 'end'],
|
||||||
img: [...xss.whiteList.img, 'usemap'],
|
img: [...xss.whiteList.img, 'usemap', 'style'],
|
||||||
map: ['name'],
|
map: ['name'],
|
||||||
area: [...xss.whiteList.a, 'coords'],
|
area: [...xss.whiteList.a, 'coords'],
|
||||||
a: [...xss.whiteList.a, 'rel'],
|
a: [...xss.whiteList.a, 'rel'],
|
||||||
|
td: [...xss.whiteList.td, 'style'],
|
||||||
|
th: [...xss.whiteList.th, 'style'],
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
whiteList: {
|
whiteList: {
|
||||||
'image-rendering': /^pixelated$/,
|
'image-rendering': /^pixelated$/,
|
||||||
|
'text-align': /^center|left|right$/,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onIgnoreTagAttr: (tag, name, value) => {
|
onIgnoreTagAttr: (tag, name, value) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user