From 23375d44226e9c25f7f3b8ea93f99989d565c05f Mon Sep 17 00:00:00 2001
From: selvan
Date: Thu, 29 Sep 2016 11:37:25 +0530
Subject: [PATCH] Preserve 'bold' font style while copy & pasting from Google
Docs. Google docs uses numeric value 700 as font-weight for bold instead of
string value 'bold'
---
source/Clean.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/Clean.js b/source/Clean.js
index b03b3b8..79f3f53 100644
--- a/source/Clean.js
+++ b/source/Clean.js
@@ -30,7 +30,7 @@ var styleToSemantic = {
}
},
fontWeight: {
- regexp: /^bold/i,
+ regexp: /^bold|^700/i,
replace: function ( doc ) {
return createElement( doc, 'B' );
}