mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 15:02:51 +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':
|
||||
return <u {...{ attributes }}>{children}</u>
|
||||
case 'strikethrough':
|
||||
return <strike {...{ attributes }}>{children}</strike>
|
||||
return <s {...{ attributes }}>{children}</s>
|
||||
default:
|
||||
return next()
|
||||
}
|
||||
|
Reference in New Issue
Block a user