test workaround for \\ in php
This commit is contained in:
parent
02d92aeb9f
commit
e75d324d25
@ -35,6 +35,10 @@ class PrismShortcode extends Shortcode
|
|||||||
$cl_filter_output = $sc->getParameter('cl-filter-output');
|
$cl_filter_output = $sc->getParameter('cl-filter-output');
|
||||||
$cl_continuation = $sc->getParameter('cl-continuation');
|
$cl_continuation = $sc->getParameter('cl-continuation');
|
||||||
|
|
||||||
|
// work around \\ not being passed along as \
|
||||||
|
if ($cl_continuation == '\\')
|
||||||
|
$cl_continuation = '\\';
|
||||||
|
|
||||||
return $this->twig->processTemplate('shortcodes/prism-highlight.html.twig', [
|
return $this->twig->processTemplate('shortcodes/prism-highlight.html.twig', [
|
||||||
'content' => trim($content),
|
'content' => trim($content),
|
||||||
'classes' => $classes,
|
'classes' => $classes,
|
||||||
|
Loading…
Reference in New Issue
Block a user