mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-25 08:11:53 +02:00
Use <s> for strikethrough example (#2676)
`<strike>` is obsolete and discouraged https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike `<s>` is better alternative https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s
This commit is contained in:
committed by
Ian Storm Taylor
parent
594e891c32
commit
071424cda0
@@ -87,7 +87,7 @@ function renderMark(props, editor, next) {
|
|||||||
case 'underline':
|
case 'underline':
|
||||||
return <u {...{ attributes }}>{children}</u>
|
return <u {...{ attributes }}>{children}</u>
|
||||||
case 'strikethrough':
|
case 'strikethrough':
|
||||||
return <strike {...{ attributes }}>{children}</strike>
|
return <s {...{ attributes }}>{children}</s>
|
||||||
default:
|
default:
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user