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

Replacing all function to TransformableRenderable

This commit is contained in:
Aidan Woods
2021-10-13 19:26:07 +01:00
parent a9f41548d3
commit e9dec33dc6
4 changed files with 85 additions and 1 deletions

View File

@@ -22,4 +22,10 @@ interface TransformableRenderable extends Renderable
* @return Renderable
*/
public function transformingContent(\Closure $Transform): Renderable;
/**
* Similar to transformingContent, but replace the string $search in text content
* with the renderable $Replacement and return the result.
*/
public function replacingAll(string $search, Renderable $Replacement): Renderable;
}