Skip to content

Commit

Permalink
Add regex to paste to remove supportLists comment from Word
Browse files Browse the repository at this point in the history
  • Loading branch information
nmielnik committed May 17, 2016
1 parent 15f11ce commit 977e27c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/extensions/paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
[new RegExp(/\n+<p/gi), '<p'],

// Microsoft Word makes these odd tags, like <o:p></o:p>
[new RegExp(/<\/?o:[a-z]*>/gi), '']
[new RegExp(/<\/?o:[a-z]*>/gi), ''],

// Microsoft Word adds some special elements around list items
[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi), '$1']
];
}
/*jslint regexp: false*/
Expand Down

0 comments on commit 977e27c

Please sign in to comment.