mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix Broken Strikethroughs in Markdown to HTML conversion.
Allow the s tag to be rendered. Fixes #6008. Signed-off-by: Buo-ren Lin (OSSII) <buoren.lin@ossii.com.tw>
This commit is contained in:
parent
0004ae716b
commit
c5f5ce126d
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import DOMPurify from 'dompurify';
|
||||||
export function getSecureDOMPurifyConfig() {
|
export function getSecureDOMPurifyConfig() {
|
||||||
return {
|
return {
|
||||||
// Allow common markdown elements including anchor tags
|
// Allow common markdown elements including anchor tags
|
||||||
ALLOWED_TAGS: ['a', 'p', 'br', 'strong', 'em', 'u', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'div', 'span'],
|
ALLOWED_TAGS: ['a', 'p', 'br', 'strong', 'em', 'u', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'div', 'span', 's'],
|
||||||
// Allow safe attributes including href for anchor tags
|
// Allow safe attributes including href for anchor tags
|
||||||
ALLOWED_ATTR: ['href', 'title', 'alt', 'src', 'width', 'height', 'target', 'rel'],
|
ALLOWED_ATTR: ['href', 'title', 'alt', 'src', 'width', 'height', 'target', 'rel'],
|
||||||
// Allow safe protocols for links
|
// Allow safe protocols for links
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue