Parsedown::inlineStrikethrough( $Excerpt )
Description
Source
File: bp-help/vendors/parsedown/Parsedown.php
1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 | protected function inlineStrikethrough( $Excerpt ) { if ( ! isset( $Excerpt [ 'text' ][1])) { return ; } if ( $Excerpt [ 'text' ][1] === '~' and preg_match( '/^~~(?=\S)(.+?)(?<=\S)~~/' , $Excerpt [ 'text' ], $matches )) { return array ( 'extent' => strlen ( $matches [0]), 'element' => array ( 'name' => 'del' , 'handler' => array ( 'function' => 'lineElements' , 'argument' => $matches [1], 'destination' => 'elements' , ) ), ); } } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.