3 * @copyright Copyright (c) 2014 Carsten Brandt
4 * @license https://github.com/cebe/markdown/blob/master/LICENSE
5 * @link https://github.com/cebe/markdown#readme
8 namespace cebe\markdown\inline;
11 * Adds strikeout inline elements
16 * Parses the strikethrough feature.
19 protected function parseStrike($markdown)
21 if (preg_match('/^~~(.+?)~~/', $markdown, $matches)) {
25 $this->parseInline($matches[1])
30 return [['text', $markdown[0] . $markdown[1]], 2];
33 protected function renderStrike($block)
35 return '<del>' . $this->renderAbsy($block[1]) . '</del>';