decodeHtmlEntities = $this->config['decodeHtmlEntities']; // Match block-level markup as well as forced line breaks (new Blocks($this->parser, $text))->parse(); // Capture link references after block markup as been overwritten (new LinkReferences($this->parser, $text))->parse(); // Inline code must be done first to avoid false positives in other inline markup (new InlineCode($this->parser, $text))->parse(); // Do the rest of inline markup. Images must be matched before links (new Images($this->parser, $text))->parse(); (new InlineSpoiler($this->parser, $text))->parse(); (new Links($this->parser, $text))->parse(); (new Strikethrough($this->parser, $text))->parse(); (new Subscript($this->parser, $text))->parse(); (new Superscript($this->parser, $text))->parse(); (new Emphasis($this->parser, $text))->parse(); (new ForcedLineBreaks($this->parser, $text))->parse(); } }