daux.io/libs/ContentTypes/Markdown/TableOfContents.php

29 lines
589 B
PHP
Raw Normal View History

<?php namespace Todaymade\Daux\ContentTypes\Markdown;
2016-04-12 08:38:52 +02:00
use League\CommonMark\Block\Element\AbstractBlock;
use League\CommonMark\Cursor;
class TableOfContents extends AbstractBlock
2016-04-12 08:38:52 +02:00
{
/**
2020-04-22 22:24:52 +02:00
* Returns true if this block can contain the given block as a child node.
2016-04-12 08:38:52 +02:00
*/
2019-11-28 22:36:26 +01:00
public function canContain(AbstractBlock $block): bool
2016-04-12 08:38:52 +02:00
{
return false;
}
/**
2020-04-22 22:24:52 +02:00
* Whether this is a code block.
2016-04-12 08:38:52 +02:00
*/
2019-11-28 22:36:26 +01:00
public function isCode(): bool
2016-04-12 08:38:52 +02:00
{
return false;
}
2019-11-28 22:36:26 +01:00
public function matchesNextLine(Cursor $cursor): bool
2016-04-12 08:38:52 +02:00
{
return false;
}
}