reenable workaround

This commit is contained in:
RealStickman 2023-06-02 11:39:36 +00:00
parent bcbaea5782
commit ce8f1c0000
2 changed files with 3 additions and 3 deletions

View File

@ -36,8 +36,8 @@ class PrismShortcode extends Shortcode
$cl_continuation = $sc->getParameter('cl-continuation');
// work around \\ not being passed along as \
//if ($cl_continuation == '\\\\')
// $cl_continuation = '\\';
if ($cl_continuation == '\\\\')
$cl_continuation = '\\';
return $this->twig->processTemplate('shortcodes/prism-highlight.html.twig', [
'content' => trim($content),

View File

@ -6,6 +6,6 @@
{% if cl_prompt %}data-prompt="{{ cl_prompt }}"{% endif %}
{% if ln_start %}data-start="{{ ln_start }}"{% endif %}
{% if highlight_lines %}data-line=" {{ highlight_lines }}"{% endif %}
{% if cl_continuation %}data-continuation-str="{{ cl_continuation|raw }}"{% endif %}
{% if cl_continuation %}data-continuation-str="{{ cl_continuation }}"{% endif %}
><code>{{- content|e('html') -}}</code></pre>
</div>