protected function getInlineCodeMarkers()
	{
		$pos = $this->text->indexOf('`');
		if ($pos === false)
		{
			return [];
		}

		preg_match_all(
			'/(`+)(\\s*)[^\\x17`]*/',
			str_replace("\x1BB", '\\`', $this->text),
			$matches,
			PREG_OFFSET_CAPTURE | PREG_SET_ORDER,
			$pos
		);
		$trimNext = 0;
		$markers  = [];
		foreach ($matches as $m)
		{
			$markers[] = [
				'pos'        => $m[0][1],
				'len'        => strlen($m[1][0]),
				'trimBefore' => $trimNext,
				'trimAfter'  => strlen($m[2][0]),
				'next'       => $m[0][1] + strlen($m[0][0])
			];
			$trimNext = strlen($m[0][0]) - strlen(rtrim($m[0][0]));
		}

		return $markers;
	}
protected function getInlineCodeMarkers()
	{
		$pos = $this->text->indexOf('`');
		if ($pos === false)
		{
			return [];
		}

		preg_match_all(
			'/(`+)(\\s*)[^\\x17`]*/',
			str_replace("\x1BB", '\\`', $this->text),
			$matches,
			PREG_OFFSET_CAPTURE | PREG_SET_ORDER,
			$pos
		);
		$trimNext = 0;
		$markers  = [];
		foreach ($matches as $m)
		{
			$markers[] = [
				'pos'        => $m[0][1],
				'len'        => strlen($m[1][0]),
				'trimBefore' => $trimNext,
				'trimAfter'  => strlen($m[2][0]),
				'next'       => $m[0][1] + strlen($m[0][0])
			];
			$trimNext = strlen($m[0][0]) - strlen(rtrim($m[0][0]));
		}

		return $markers;
	}
protected function getInlineCodeMarkers ( ) { $ pos = $ this -> text -> indexOf ( '`' ) ; if ( $ pos === false ) { return [ ] ; } preg_match_all ( '/(`+)(\\s*)[^\\x17`]*/' , str_replace ( "\x1BB" , '\\`' , $ this -> text ) , $ matches , PREG_OFFSET_CAPTURE | PREG_SET_ORDER , $ pos ) ; $ trimNext = 0 ; $ markers = [ ] ; foreach ( $ matches as $ m ) { $ markers [ ] = [ 'pos' => $ m [ 0 ] [ 1 ] , 'len' => strlen ( $ m [ 1 ] [ 0 ] ) , 'trimBefore' => $ trimNext , 'trimAfter' => strlen ( $ m [ 2 ] [ 0 ] ) , 'next' => $ m [ 0 ] [ 1 ] + strlen ( $ m [ 0 ] [ 0 ] ) ] ; $ trimNext = strlen ( $ m [ 0 ] [ 0 ] ) - strlen ( rtrim ( $ m [ 0 ] [ 0 ] ) ) ; } return $ markers ; }
Capture and return inline code markers

@return array
Capture and return inline code markers