/home/techb158/ileadtechnology.com/SSM/vendor/league/commonmark/src/Block/Element
NameSizeModeActions
AbstractBlock.php45120644editdlrm
AbstractStringContainerBlock.php12600644editdlrm
BlockQuote.php11640644editdlrm
Document.php13080644editdlrm
FencedCode.php43220644editdlrm
Heading.php17910644editdlrm
HtmlBlock.php25140644editdlrm
IndentedCode.php19150644editdlrm
InlineContainerInterface.php5340644editdlrm
ListBlock.php29590644editdlrm
ListData.php10690644editdlrm
ListItem.php16850644editdlrm
Paragraph.php25140644editdlrm
StringContainerInterface.php10050644editdlrm
ThematicBreak.php7470644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/league/commonmark/src/Block/Element/Heading.php (1791B)
* * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js) * - (c) John MacFarlane * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace League\CommonMark\Block\Element; use League\CommonMark\ContextInterface; use League\CommonMark\Cursor; class Heading extends AbstractStringContainerBlock implements InlineContainerInterface { /** * @var int */ protected $level; /** * @param int $level * @param string|string[] $contents */ public function __construct(int $level, $contents) { parent::__construct(); $this->level = $level; if (!\is_array($contents)) { $contents = [$contents]; } foreach ($contents as $line) { $this->addLine($line); } } /** * @return int */ public function getLevel(): int { return $this->level; } public function finalize(ContextInterface $context, int $endLineNumber) { parent::finalize($context, $endLineNumber); $this->finalStringContents = \implode("\n", $this->strings->toArray()); } public function canContain(AbstractBlock $block): bool { return false; } public function isCode(): bool { return false; } public function matchesNextLine(Cursor $cursor): bool { return false; } public function handleRemainingContents(ContextInterface $context, Cursor $cursor) { // nothing to do; contents were already added via the constructor. } }