Selaa lähdekoodia

Add test for escaping text between 2 URLs.

Maciej Gołaszewski 5 vuotta sitten
vanhempi
commit
85d2030fca

+ 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',