mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
32 lines
769 B
PHP
32 lines
769 B
PHP
|
<?php
|
||
|
|
||
|
namespace Erusev\Parsedown\Components;
|
||
|
|
||
|
use Erusev\Parsedown\Component;
|
||
|
use Erusev\Parsedown\Parsing\Excerpt;
|
||
|
use Erusev\Parsedown\State;
|
||
|
|
||
|
interface Inline extends Component
|
||
|
{
|
||
|
/**
|
||
|
* @param Excerpt $Excerpt
|
||
|
* @param State $State
|
||
|
* @return static|null
|
||
|
*/
|
||
|
public static function build(Excerpt $Excerpt, State $State);
|
||
|
|
||
|
/**
|
||
|
* Number of characters consumed by the build action.
|
||
|
* @return int
|
||
|
* */
|
||
|
public function width();
|
||
|
|
||
|
/**
|
||
|
* Return an integer to declare that the inline should be treated as if it
|
||
|
* started from that position in the excerpt given to static::build.
|
||
|
* Return null to use the excerpt offset value.
|
||
|
* @return int|null
|
||
|
* */
|
||
|
public function modifyStartPositionTo();
|
||
|
}
|