Skip to content

Handle strikethrough in MarkdownConsumer#274

Merged
adamziel merged 1 commit into
trunkfrom
adamziel/markdown-consumer-strikethrough
May 16, 2026
Merged

Handle strikethrough in MarkdownConsumer#274
adamziel merged 1 commit into
trunkfrom
adamziel/markdown-consumer-strikethrough

Conversation

@adamziel
Copy link
Copy Markdown
Collaborator

@adamziel adamziel commented May 16, 2026

What

  • Adds MarkdownConsumer handling for GitHub-flavored strikethrough nodes.
  • Adds a regression case so conversion continues after ~~text~~.

Testing

  • php -r 'require "vendor/autoload.php"; $md="Keep ~~removed~~ text and continue.\n\nSecond paragraph."; $out=(new WordPress\Markdown\MarkdownConsumer($md))->consume()->get_block_markup(); if (strpos($out,"<del>removed</del>")===false || strpos($out,"Second paragraph")===false) exit(1); echo "direct strikethrough regression passed\n";'

Note: vendor/bin/phpunit --filter MarkdownConsumerTest -c phpunit.xml could not run locally because dev dependencies are not installed in the submodule checkout.

@adamziel adamziel merged commit 5a090b7 into trunk May 16, 2026
29 checks passed
@adamziel adamziel deleted the adamziel/markdown-consumer-strikethrough branch May 16, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant