浏览代码

Add test for escaping text between 2 URLs.

Maciej Gołaszewski 5 年之前
父节点
当前提交
85d2030fca
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/text.js

+ 7 - 0
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/text.js

@@ -15,6 +15,13 @@ describe( 'GFMDataProcessor', () => {
 				);
 			} );
 
+			it( 'should not escape urls (data escaped between urls)', () => {
+				testDataProcessor(
+					'escape\\_this https://test.com/do_[not]-escape escape\\_this https://test.com/do_[not]-escape',
+					'<p>escape_this https://test.com/do_[not]-escape escape_this https://test.com/do_[not]-escape</p>'
+				);
+			} );
+
 			it( 'should not escape urls (at start)', () => {
 				testDataProcessor(
 					'https://test.com/do_[not]-escape escape\\_this',