diff --git a/packages/slate-html-serializer/src/index.js b/packages/slate-html-serializer/src/index.js index b7e689963..99b5fe7e1 100644 --- a/packages/slate-html-serializer/src/index.js +++ b/packages/slate-html-serializer/src/index.js @@ -27,7 +27,7 @@ const String = new Record({ const TEXT_RULE = { deserialize(el) { - if (el.tagName == 'br') { + if (el.tagName.toLowerCase() == 'br') { return { kind: 'text', ranges: [{ text: '\n' }],