Home
last modified time | relevance | path

Searched refs:inlineContext (Results 1 – 20 of 20) sorted by relevance

/plugin/commonmark/vendor/league/commonmark/src/Inline/Parser/
H A DOpenBracketParser.php28 public function parse(InlineParserContext $inlineContext): bool argument
30 $inlineContext->getCursor()->advanceBy(1);
32 $inlineContext->getContainer()->appendChild($node);
35 …$delimiter = new Delimiter('[', 1, $node, true, false, $inlineContext->getCursor()->getPosition());
36 $inlineContext->getDelimiterStack()->push($delimiter);
H A DNewlineParser.php28 public function parse(InlineParserContext $inlineContext): bool argument
30 $inlineContext->getCursor()->advanceBy(1);
34 $lastInline = $inlineContext->getContainer()->lastChild();
44 $inlineContext->getContainer()->appendChild(new Newline(Newline::HARDBREAK));
46 $inlineContext->getContainer()->appendChild(new Newline(Newline::SOFTBREAK));
H A DEscapableParser.php29 public function parse(InlineParserContext $inlineContext): bool argument
31 $cursor = $inlineContext->getCursor();
36 $inlineContext->getContainer()->appendChild(new Newline(Newline::HARDBREAK));
41 $inlineContext->getContainer()->appendChild(new Text($nextChar));
47 $inlineContext->getContainer()->appendChild(new Text('\\'));
H A DCloseBracketParser.php43 public function parse(InlineParserContext $inlineContext): bool argument
46 $opener = $inlineContext->getDelimiterStack()->searchByCharacter(['[', '!']);
53 $inlineContext->getDelimiterStack()->removeDelimiter($opener);
58 $cursor = $inlineContext->getCursor();
66 …if (!($link = $this->tryParseLink($cursor, $inlineContext->getReferenceMap(), $opener, $startPos))…
68 … $inlineContext->getDelimiterStack()->removeDelimiter($opener); // Remove this opener from stack
83 $delimiterStack = $inlineContext->getDelimiterStack();
94 $inlineContext->getDelimiterStack()->removeEarlierMatches('[');
H A DBangParser.php28 public function parse(InlineParserContext $inlineContext): bool argument
30 $cursor = $inlineContext->getCursor();
34 $inlineContext->getContainer()->appendChild($node);
38 $inlineContext->getDelimiterStack()->push($delimiter);
H A DAutolinkParser.php31 public function parse(InlineParserContext $inlineContext): bool argument
33 $cursor = $inlineContext->getCursor();
36 …$inlineContext->getContainer()->appendChild(new Link('mailto:' . UrlEncoder::unescapeAndEncode($em…
41 …$inlineContext->getContainer()->appendChild(new Link(UrlEncoder::unescapeAndEncode($dest), $dest));
H A DBacktickParser.php28 public function parse(InlineParserContext $inlineContext): bool argument
30 $cursor = $inlineContext->getCursor();
52 $inlineContext->getContainer()->appendChild(new Code($c));
60 $inlineContext->getContainer()->appendChild(new Text($ticks));
H A DHtmlInlineParser.php28 public function parse(InlineParserContext $inlineContext): bool argument
30 if ($m = $inlineContext->getCursor()->match('/^' . RegexHelper::PARTIAL_HTMLTAG . '/i')) {
31 $inlineContext->getContainer()->appendChild(new HtmlInline($m));
H A DEntityParser.php29 public function parse(InlineParserContext $inlineContext): bool argument
31 if ($m = $inlineContext->getCursor()->match('/^' . RegexHelper::PARTIAL_ENTITY . '/i')) {
32 $inlineContext->getContainer()->appendChild(new Text(Html5EntityDecoder::decode($m)));
H A DInlineParserInterface.php24 * @param InlineParserContext $inlineContext
28 public function parse(InlineParserContext $inlineContext): bool; argument
/plugin/commonmark/vendor/league/commonmark/src/Extension/SmartPunct/
H A DPunctuationParser.php31 public function parse(InlineParserContext $inlineContext): bool argument
33 $cursor = $inlineContext->getCursor();
38 $inlineContext->getContainer()->appendChild(new Text('…'));
61 $inlineContext->getContainer()->appendChild(new Text(
H A DQuoteParser.php38 public function parse(InlineParserContext $inlineContext): bool argument
40 $cursor = $inlineContext->getCursor();
60 $inlineContext->getContainer()->appendChild($node);
63 …$inlineContext->getDelimiterStack()->push(new Delimiter($normalizedCharacter, 1, $node, $canOpen, …
/plugin/commonmark/vendor/league/commonmark/src/Extension/Attributes/Parser/
H A DAttributesInlineParser.php33 public function parse(InlineParserContext $inlineContext): bool argument
35 $cursor = $inlineContext->getCursor();
44 …if ($char === ' ' && ($previousInline = $inlineContext->getContainer()->lastChild()) instanceof Te…
53 $inlineContext->getContainer()->appendChild($node);
/plugin/commonmark/vendor/league/commonmark/src/Extension/TaskList/
H A DTaskListItemMarkerParser.php26 public function parse(InlineParserContext $inlineContext): bool argument
28 $container = $inlineContext->getContainer();
35 $cursor = $inlineContext->getCursor();
/plugin/commonmark/vendor/league/commonmark/src/Extension/Footnote/Parser/
H A DFootnoteRefParser.php34 public function parse(InlineParserContext $inlineContext): bool argument
36 $container = $inlineContext->getContainer();
37 $cursor = $inlineContext->getCursor();
H A DAnonymousFootnoteRefParser.php44 public function parse(InlineParserContext $inlineContext): bool argument
46 $container = $inlineContext->getContainer();
47 $cursor = $inlineContext->getCursor();
/plugin/commonmark/vendor/league/commonmark/src/Extension/Autolink/
H A DInlineMentionParser.php47 public function parse(InlineParserContext $inlineContext): bool argument
49 $cursor = $inlineContext->getCursor();
75 $inlineContext->getContainer()->appendChild(new Link($url, '@' . $handle));
/plugin/commonmark/vendor/league/commonmark/src/Extension/Mention/
H A DMentionParser.php43 public function parse(InlineParserContext $inlineContext): bool argument
45 $cursor = $inlineContext->getCursor();
77 $inlineContext->getContainer()->appendChild($mention);
/plugin/commonmark/vendor/league/commonmark/src/
H A DInlineParserEngine.php81 …limiters(DelimiterProcessorInterface $delimiterProcessor, InlineParserContext $inlineContext): bool argument
83 $cursor = $inlineContext->getCursor();
112 $inlineContext->getContainer()->appendChild($node);
117 $inlineContext->getDelimiterStack()->push($delimiter);
/plugin/commonmark/vendor/league/commonmark/
H A DCHANGELOG-0.x.md552 …- Add parsed inlines using `$inlineContext->getContainer()->appendChild()` instead of `$inlineCont…