fix: fix a bug where strike and underline can’t parsed together
This commit is contained in:
@@ -53,7 +53,9 @@ export const Strike = Mark.create<StrikeOptions>({
|
|||||||
tag: 'strike',
|
tag: 'strike',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
style: 'text-decoration=line-through',
|
style: 'text-decoration',
|
||||||
|
consuming: false,
|
||||||
|
getAttrs: style => ((style as string).includes('line-through') ? {} : false),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,7 +38,9 @@ export const Underline = Mark.create<UnderlineOptions>({
|
|||||||
tag: 'u',
|
tag: 'u',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
style: 'text-decoration=underline',
|
style: 'text-decoration',
|
||||||
|
consuming: false,
|
||||||
|
getAttrs: style => ((style as string).includes('underline') ? {} : false),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user