protected function prepareMarkers($text)
	{
		$this->_inlineMarkers = [];
		foreach ($this->inlineMarkers() as $marker => $method) {
			if (strpos($text, $marker) !== false) {
				$m = $marker[0];
				// put the longest marker first
				if (isset($this->_inlineMarkers[$m])) {
					reset($this->_inlineMarkers[$m]);
					if (strlen($marker) > strlen(key($this->_inlineMarkers[$m]))) {
						$this->_inlineMarkers[$m] = array_merge([$marker => $method], $this->_inlineMarkers[$m]);
						continue;
					}
				}
				$this->_inlineMarkers[$m][$marker] = $method;
			}
		}
	}
protected function prepareMarkers($text)
	{
		$this->_inlineMarkers = [];
		foreach ($this->inlineMarkers() as $marker => $method) {
			if (strpos($text, $marker) !== false) {
				$m = $marker[0];
				// put the longest marker first
				if (isset($this->_inlineMarkers[$m])) {
					reset($this->_inlineMarkers[$m]);
					if (strlen($marker) > strlen(key($this->_inlineMarkers[$m]))) {
						$this->_inlineMarkers[$m] = array_merge([$marker => $method], $this->_inlineMarkers[$m]);
						continue;
					}
				}
				$this->_inlineMarkers[$m][$marker] = $method;
			}
		}
	}
protected function prepareMarkers ( $ text ) { $ this -> _inlineMarkers = [ ] ; foreach ( $ this -> inlineMarkers ( ) as $ marker => $ method ) { if ( strpos ( $ text , $ marker ) !== false ) { $ m = $ marker [ 0 ] ; // put the longest marker first if ( isset ( $ this -> _inlineMarkers [ $ m ] ) ) { reset ( $ this -> _inlineMarkers [ $ m ] ) ; if ( strlen ( $ marker ) > strlen ( key ( $ this -> _inlineMarkers [ $ m ] ) ) ) { $ this -> _inlineMarkers [ $ m ] = array_merge ( [ $ marker => $ method ] , $ this -> _inlineMarkers [ $ m ] ) ; continue ; } } $ this -> _inlineMarkers [ $ m ] [ $ marker ] = $ method ; } } }
Prepare markers that are used in the text to parse

Add all markers that are present in markdown.
Check is done to avoid iterations in parseInline(), good for huge markdown files
@param string $text
Prepare markers that are used in the text to parse