From 1d8010be8500ef5c98dbd4179354db1986d5c8f4 Mon Sep 17 00:00:00 2001 From: Amandeep Singh Date: Thu, 9 Mar 2023 00:51:37 +1100 Subject: [PATCH] Fix the nodeName from lower to upper case (#5348) The node name should be `STRONG` instead of `strong` in the example deserialize function. --- docs/concepts/10-serializing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/10-serializing.md b/docs/concepts/10-serializing.md index f71d3478a..d7d2bc63f 100644 --- a/docs/concepts/10-serializing.md +++ b/docs/concepts/10-serializing.md @@ -173,7 +173,7 @@ const deserialize = (el, markAttributes = {}) => { // define attributes for text nodes switch (el.nodeName) { - case 'strong': + case 'STRONG': nodeAttributes.bold = true }