1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 18:09:49 +02:00

Fix the nodeName from lower to upper case (#5348)

The node name should be `STRONG` instead of `strong` in the example deserialize function.
This commit is contained in:
Amandeep Singh
2023-03-09 00:51:37 +11:00
committed by GitHub
parent ee7eac4331
commit 1d8010be85

View File

@@ -173,7 +173,7 @@ const deserialize = (el, markAttributes = {}) => {
// define attributes for text nodes
switch (el.nodeName) {
case 'strong':
case 'STRONG':
nodeAttributes.bold = true
}