html.js 662 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. import { testDataProcessor } from '../_utils/utils';
  6. describe( 'GFMDataProcessor', () => {
  7. describe( 'html', () => {
  8. it( 'should keep html', () => {
  9. testDataProcessor(
  10. 'test with <keep>html</keep> and <notkeep>not html</notkeep>',
  11. '<p>test with <keep>html</keep> and <notkeep>not html</notkeep></p>',
  12. 'test with <keep>html</keep> and not html',
  13. {
  14. setup: dataProcessor => {
  15. dataProcessor.keepHtml( 'keep' );
  16. }
  17. }
  18. );
  19. } );
  20. } );
  21. } );