Kaynağa Gözat

Added a basic test for todo lists.

fredck 5 yıl önce
ebeveyn
işleme
e593849af9

+ 13 - 0
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/lists.js

@@ -340,4 +340,17 @@ describe( 'GFMDataProcessor', () => {
 			);
 		} );
 	} );
+
+	describe( 'todo lists', () => {
+		it( 'should process todo lists', () => {
+			testDataProcessor(
+				'*   [ ] List 1\n' +
+				'*   [x] Item 2',
+
+				'<ul>' +
+					'<li><input disabled="" type="checkbox"></input>List 1</li>' +
+					'<li><input checked="" disabled="" type="checkbox"></input>Item 2</li>' +
+				'</ul>' );
+		} );
+	} );
 } );