/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ import { testDataProcessor } from '../_utils/utils'; describe( 'GFMDataProcessor', () => { describe( 'paragraphs', () => { it( 'single line', () => { testDataProcessor( 'single line paragraph', '

single line paragraph

' ); } ); it( 'multiline', () => { testDataProcessor( 'first\n' + 'second\n' + 'third', // GitHub is rendering as: //

first
// second
// third

'

first

second

third

' ); } ); it( 'with header after #1', () => { testDataProcessor( 'single line\n' + '# header', // GitHub is rendering as: //

single line

// //

header

'

single line

header

', 'single line\n' + '\n' + '# header' ); } ); it( 'with blockquote after', () => { testDataProcessor( 'single line' + '\n> quote', // GitHub is rendereing as: //

single line

// //
//

quote

//
'

single line

quote

', 'single line' + '\n' + '\n> quote' ); } ); it( 'with list after', () => { testDataProcessor( 'single line\n' + '* item', // GitHub is rendering as: //

single line

// // '

single line

', 'single line\n' + '\n' + '* item' ); } ); } ); } );