Implement markdown link replacement with snip url
This commit is contained in:
@ -25,14 +25,14 @@ class SnipTwigExtension extends AbstractExtension
|
||||
];
|
||||
}
|
||||
|
||||
function snipPath(int $id): string
|
||||
private function snipPath(int $id): string
|
||||
{
|
||||
return $this->router->generate('snip_single', [
|
||||
'snip' => $id,
|
||||
]);
|
||||
}
|
||||
|
||||
function snipLink(int $id): string
|
||||
private function snipLink(int $id): string
|
||||
{
|
||||
$snip = $this->snipRepo->find($id);
|
||||
if ($snip === null) {
|
||||
|
Reference in New Issue
Block a user