strikethrough.js 589 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. import { testDataProcessor as test } from 'tests/markdown-gfm/_utils/utils.js';
  6. describe( 'GFMDataProcessor', () => {
  7. describe( 'Strikethrough', () => {
  8. it( 'should process strikethrough text', () => {
  9. test(
  10. '~~deleted~~',
  11. '<p><del>deleted</del></p>'
  12. );
  13. } );
  14. it( 'should process strikethrough inside text', () => {
  15. test(
  16. 'This is ~~deleted content~~.',
  17. '<p>This is <del>deleted content</del>.</p>'
  18. );
  19. } );
  20. } );
  21. } );