Making WordPress.org


Ignore:
Timestamp:
12/21/2021 01:50:11 AM (3 years ago)
Author:
dd32
Message:

Handbooks: Block Editor: Apply strikethrough markdown formatting, as MarkdownExtra doesn't support it.

Props mkaz.
Closes https://github.com/WordPress/wordpress.org/pull/47.
Fixes #5989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/import-block-editor.php

    r11389 r11392  
    292292        );
    293293
     294        // Support strikethrough.
     295        // Transform ~~some text~~ to <s>some text</s>
     296        $markdown = preg_replace(
     297            '@~~(.*?)~~@',
     298            '<s>$1</s>',
     299            $markdown
     300        );
     301
    294302        // Strip the trailing Code is Poetry footer from packages.
    295303        // See https://github.com/WordPress/gutenberg/blob/trunk/packages/README.md
Note: See TracChangeset for help on using the changeset viewer.