8
0

strikethrough.js 735 B

123456789101112131415161718192021222324252627282930
  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. // GitHub is rendering as:
  12. // <p><del>deleted</del></p>
  13. '<p><del>deleted</del></p>'
  14. );
  15. } );
  16. it( 'should process strikethrough inside text', () => {
  17. test(
  18. 'This is ~~deleted content~~.',
  19. // GitHub is rendering as:
  20. // <p>This is <del>deleted content</del>.</p>
  21. '<p>This is <del>deleted content</del>.</p>'
  22. );
  23. } );
  24. } );
  25. } );