Allow inlining code blocks with double quotes

This commit is contained in:
Tim
2023-04-07 18:45:43 +02:00
parent 9898bce41a
commit a697f89083
3 changed files with 11 additions and 4 deletions

View File

@ -46,12 +46,12 @@ class SnipController extends AbstractController
#[Route('/single/{snip}', name: '_single')]
public function single(Snip $snip): Response
{
$snipParser = new Pipeline();
$this->denyAccessUnlessGranted(SnipVoter::VIEW, $snip);
$snipService = $this->snipServiceFactory->create($snip);
return $this->render('snip/single.html.twig', [
'snip' => $snip,
'content' => $snipParser->parse(($snipService->get())),
'content' => (new Pipeline())->parse(($snipService->get())),
'branch' => $snipService->getRepo()->getCurrentBranchName(),
]);
}