1
0
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:
Dominik Serafin
2019-04-02 15:26:05 +02:00
committed by Ian Storm Taylor
parent 594e891c32
commit 071424cda0

View File

@@ -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()
}