1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Backtracking capable inlines better expressed by interface

This commit is contained in:
Aidan Woods
2019-02-22 14:56:22 +00:00
parent 4501a094db
commit 4adbd0b8a7
18 changed files with 41 additions and 35 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace Erusev\Parsedown\Components;
use Erusev\Parsedown\Parsing\Excerpt;
interface BacktrackingInline extends Inline
{
/**
* 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();
}